diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-06 17:44:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-06 17:44:21 +0100 |
commit | 59d7366bcd79aa1bb4bb12876036a1c434683630 (patch) | |
tree | 520d44f878e56c1da229a82715cba422133e9ed5 /install-fail-tool | |
parent | 796dfcb06bfa6a0bf56c85e8794e1a084e48b9e6 (diff) |
fix Apple
Diffstat (limited to 'install-fail-tool')
-rwxr-xr-x | install-fail-tool | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install-fail-tool b/install-fail-tool index be80dd12..99f8fbdf 100755 --- a/install-fail-tool +++ b/install-fail-tool @@ -4,12 +4,12 @@ test -n "$1" || exit 1 dir="$1" -for i in "$dir"/*.dylib "$dir"/opentrack; do +for i in "$dir"/* "$dir"/*/*; do + { test -x "$i" && test -f "$i"; } || continue echo ---- $i ---- - install_name_tool -id "@executable_path/$(basename -- "$i")" "$i" - otool -L "$i" | awk '$1 ~ /\.dylib$/ { print $1 }' | + otool -L "$i" | awk '{ print $1 }' | while read l; do j="$(basename -- "$l")" if test -e "$dir/$j"; then |