diff options
author | R. van Twisk <ries.van.twisk@ing.com> | 2019-12-19 21:07:19 +0100 |
---|---|---|
committer | R. van Twisk <ries.van.twisk@ing.com> | 2019-12-19 21:07:19 +0100 |
commit | 96316119fd57b1d5acdfc0ff51e1766a9311f11f (patch) | |
tree | d4f82397cbfc4427b39901023cc350ac9673965f /macosx/install-fail-tool | |
parent | 8d29288ecd592bae5b0bc2951cd44c7400e36654 (diff) |
Fix bundle creation OSX
Diffstat (limited to 'macosx/install-fail-tool')
-rwxr-xr-x | macosx/install-fail-tool | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/install-fail-tool b/macosx/install-fail-tool index a5464c18..16284562 100755 --- a/macosx/install-fail-tool +++ b/macosx/install-fail-tool @@ -4,22 +4,22 @@ test -n "$1" || exit 1 dir="$1" -for i in "$dir"/* "$dir"/*/* "$dir"/*/*/*; do - { test -x "$i" && test -f "$i"; } || continue +for i in "$dir"/*; do + echo $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/$(echo "$i" | sed -e "s,^$dir/,,")" "$i" otool -L "$i" | awk '{ print $1 }' | while read l; do j="$(basename -- "$l")" + echo === $j === if test -e "$dir/$j"; then - install_name_tool -change "$l" "@executable_path/$j" "$i" + install_name_tool -change "$l" "@rpath/$j" "$i" fi done done |