diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-19 12:26:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-19 12:26:58 +0200 |
commit | 71d8892c19b6a1dbfac7d40a3bb6717316e872b9 (patch) | |
tree | 61b7ee05e50e6087aa46b4e86dcc1609975e8515 /macosx/install-fail-tool | |
parent | 3ad67aaa96be824dbcd2c9334dc709d7d4dec08e (diff) |
app bundle finally works
Diffstat (limited to 'macosx/install-fail-tool')
-rw-r--r--[-rwxr-xr-x] | macosx/install-fail-tool | 4 |
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 |