Guest User

Untitled

a guest
Jun 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # This script is used to make dylibs installed for local be portable
  4.  
  5. # Change this to be the path to the dylibs
  6. LIBRARY_DIR=install/lib-install
  7.  
  8. # Change this to be the path to the local build path
  9. BUILD_PATH=/Users/iain/Projects/xamarin/gtkmacbuild/install/lib
  10.  
  11. rm -rf $LIBRARY_DIR
  12. cp -r $BUILD_PATH $LIBRARY_DIR
  13.  
  14. pushd $LIBRARY_DIR
  15.  
  16. for i in *.dylib; do
  17. install_name_tool -id "$i" "$i"
  18. for j in *.dylib; do
  19. test "$i" == "$j" && continue
  20. install_name_tool -change "$BUILD_PATH/$j" "@loader_path/$j" "$i"
  21. done
  22. done
  23.  
  24. popd
Add Comment
Please, Sign In to add comment