diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-19 11:11:13 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-19 11:12:04 +0200 | 
| commit | 84044ec3f6fe9ea90f3601b880d96be989fb7d79 (patch) | |
| tree | 7b5b53cc0ace4b701a8f7a37289f7d8827e3d81f /macosx/install-fail-tool | |
| parent | 64a6892e8713c69e1f5ade929ec8035146de3f56 (diff) | |
fix osx, app bundle now builds
Diffstat (limited to 'macosx/install-fail-tool')
| -rwxr-xr-x | macosx/install-fail-tool | 25 | 
1 files changed, 25 insertions, 0 deletions
diff --git a/macosx/install-fail-tool b/macosx/install-fail-tool new file mode 100755 index 00000000..0f34c3a1 --- /dev/null +++ b/macosx/install-fail-tool @@ -0,0 +1,25 @@ +#!/bin/sh + +test -n "$1" || exit 1 + +dir="$1" + +for i in "$dir"/* "$dir"/*/*; do +        { test -x "$i" && test -f "$i"; } || continue +        case "$i" in +            *.dll|*.exe) continue ;; +            *) : ;; +        esac +        case "$i" in +            *.dylib|*.bin) strip -x "$i" ;; esac +        echo ---- $i ---- +        install_name_tool -id "@executable_path/$(basename -- "$i")" "$i" + +        otool -L "$i" | awk '{ print $1 }' | +        while read l; do +                j="$(basename -- "$l")" +                if test -e "$dir/$j"; then +                        install_name_tool -change "$l" "@executable_path/$j" "$i" +                fi +        done +done  | 
