Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This script is used to make dylibs installed for local be portable
- # Change this to be the path to the dylibs
- LIBRARY_DIR=install/lib-install
- # Change this to be the path to the local build path
- BUILD_PATH=/Users/iain/Projects/xamarin/gtkmacbuild/install/lib
- rm -rf $LIBRARY_DIR
- cp -r $BUILD_PATH $LIBRARY_DIR
- pushd $LIBRARY_DIR
- for i in *.dylib; do
- install_name_tool -id "$i" "$i"
- for j in *.dylib; do
- test "$i" == "$j" && continue
- install_name_tool -change "$BUILD_PATH/$j" "@loader_path/$j" "$i"
- done
- done
- popd
Add Comment
Please, Sign In to add comment