fix osx_find_dependencies.sh for path containing "/usr/lib"

This commit is contained in:
Thomas Bernard 2019-01-22 23:56:11 +01:00
parent db4dbbc51f
commit 70587585d2
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -14,7 +14,7 @@ if [ $# -ne 1 ] ; then
fi
#list=$(otool -L $1 | sed '1d' | grep -v libSystem.B | grep -v /System/Library | grep -v $1 | cut -f 2 | cut -d' ' -f 1)
list=$(otool -L $1 | sed '1d' | grep -v /usr/lib/lib | grep -v /System/Library | grep -v $1 | cut -f 2 | cut -d' ' -f 1)
list=$(otool -L $1 | sed '1d' | cut -f 2 | grep -v ^/usr/lib/lib | grep -v ^/System/Library | grep -v $1 | cut -d' ' -f 1)
#echo "$1 => $list" >&2