aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx/osx-app.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/macosx/osx-app.sh.in')
-rwxr-xr-xpackaging/macosx/osx-app.sh.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/packaging/macosx/osx-app.sh.in b/packaging/macosx/osx-app.sh.in
index 21a1ab65e5..3902d83cd8 100755
--- a/packaging/macosx/osx-app.sh.in
+++ b/packaging/macosx/osx-app.sh.in
@@ -33,6 +33,8 @@
# and "share" directories under the installation directory.
#
+shopt -s extglob
+
# Defaults
strip=false
exclude_prefixes="/System/|/Library/|/usr/lib/|/usr/X11/|/opt/X11/|@rpath|@executable_path"
@@ -133,7 +135,12 @@ pkgplugin="$bundle/Contents/PlugIns/wireshark/@VERSION_MAJOR@.@VERSION_MINOR@"
#
bundle_binary_list=$( find $pkgexec -type f -perm -0555 -print )
-echo -e "\\nFixing up $bundle...\\n"
+echo -e "\\nFixing up $bundle..."
+
+echo -e "\\nPrepopulating our libraries"
+
+# Copy only <library>.<SOVERSION>.dylib.
+cp -v +([^.]).+([[:digit:]]).dylib "$pkglib"
# Find out libs we need from Fink, MacPorts, or from a custom install
# (i.e. $LIBPREFIX), then loop until no changes.
@@ -141,7 +148,7 @@ a=1
nfiles=0
endl=true
while $endl; do
- echo -e "Looking for dependencies. Round $a"
+ echo -e "\\nLooking for dependencies. Round $a"
#
# To find dependencies, we:
#