aboutsummaryrefslogtreecommitdiff
path: root/packages/darwin_app/embed-MacOSX-dependencies.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-01-16 04:33:04 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-01-16 04:33:04 +0000
commit466a6b059fb616d6e99de078df96c38a8de5492d (patch)
tree5eb0c0a3039ab98776302e38c51b2574e1fc62c5 /packages/darwin_app/embed-MacOSX-dependencies.sh
parentb7621442c84d5d5f71808434ade0436fae9fb18e (diff)
fixed bug in library copy where it would copy over libs that had already been copied. Then the newly copied lib would have the only library paths in it rather than the adjusted ones.
svn path=/trunk/; revision=4414
Diffstat (limited to 'packages/darwin_app/embed-MacOSX-dependencies.sh')
-rwxr-xr-xpackages/darwin_app/embed-MacOSX-dependencies.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/darwin_app/embed-MacOSX-dependencies.sh b/packages/darwin_app/embed-MacOSX-dependencies.sh
index 0d4d3022..0c0392bc 100755
--- a/packages/darwin_app/embed-MacOSX-dependencies.sh
+++ b/packages/darwin_app/embed-MacOSX-dependencies.sh
@@ -43,7 +43,11 @@ for dylib in $PD_APP_LIB/*.dylib; do
echo "`echo $dylib | sed 's|.*/\(.*\.dylib\)|\1|'` is using:"
for lib in $LIBS; do
echo -e "\t$lib"
- install -p /sw/lib/$lib $PD_APP_LIB
+ if [ -e $PD_APP_LIB/$lib ]; then
+ echo "$PD_APP_LIB/$lib already exists, skipping copy."
+ else
+ install -vp /sw/lib/$lib $PD_APP_LIB
+ fi
# @executable_path starts from Contents/Resources/bin/pd
install_name_tool -id @executable_path/../../$LIB_DIR/$lib $PD_APP_LIB/$lib
install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$lib $dylib