From 466a6b059fb616d6e99de078df96c38a8de5492d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 16 Jan 2006 04:33:04 +0000 Subject: 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 --- packages/darwin_app/embed-MacOSX-dependencies.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/darwin_app/embed-MacOSX-dependencies.sh') 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 -- cgit v1.2.1