summaryrefslogtreecommitdiffhomepage
path: root/macosx/install-fail-tool
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/install-fail-tool')
-rw-r--r--[-rwxr-xr-x]macosx/install-fail-tool4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/install-fail-tool b/macosx/install-fail-tool
index 0f34c3a1..a5464c18 100755..100644
--- a/macosx/install-fail-tool
+++ b/macosx/install-fail-tool
@@ -4,7 +4,7 @@ test -n "$1" || exit 1
dir="$1"
-for i in "$dir"/* "$dir"/*/*; do
+for i in "$dir"/* "$dir"/*/* "$dir"/*/*/*; do
{ test -x "$i" && test -f "$i"; } || continue
case "$i" in
*.dll|*.exe) continue ;;
@@ -13,7 +13,7 @@ for i in "$dir"/* "$dir"/*/*; do
case "$i" in
*.dylib|*.bin) strip -x "$i" ;; esac
echo ---- $i ----
- install_name_tool -id "@executable_path/$(basename -- "$i")" "$i"
+ install_name_tool -id "@executable_path/$(echo "$i" | sed -e "s,^$dir/,,")" "$i"
otool -L "$i" | awk '{ print $1 }' |
while read l; do