diff options
author | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2014-10-07 11:22:32 +0400 |
---|---|---|
committer | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2014-10-07 11:23:15 +0400 |
commit | 6551ca87123f489606d9b617914e6399d644dcba (patch) | |
tree | 07c4114f6e586e87d3552485ebdee179683d8450 | |
parent | 83e626a9624f97baec346d0ccb946bb9709cce5b (diff) |
[Script] Update it to be clearer about usage.
-rwxr-xr-x | fix_links.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fix_links.sh b/fix_links.sh index 2b886af..9b9f929 100755 --- a/fix_links.sh +++ b/fix_links.sh @@ -1,6 +1,11 @@ #!/bin/bash -cd mac +# This script is used to make dylibs installed for /usr/local be portable. + +# Change this to be the path to the dylibs. +LIBRARY_DIR=mac + +pushd $LIBRARY_DIR for i in *; do install_name_tool -id "$i" "$i" for j in *; do @@ -8,4 +13,5 @@ for i in *; do install_name_tool -change "/usr/local/lib/$j" "@loader_path/$j" "$i" done done +popd |