Compatibility with stupid versions of sed that don't recognize \t and \s

This commit is contained in:
Andrei "Akari" Alexeyev 2017-02-26 00:28:06 +02:00
parent 77d3f06a56
commit da4f156c71

View file

@ -34,7 +34,7 @@ rm -vf "$DYLIB_PATH"/*.dylib
declare -A handled_libs
function handle_dylibs {
for lib in $($otool -L "$1" | sed -e '/:$/d' -e 's/\s*//' -e 's/\s.*//' -e '/libSystem/d' -e '/.*\.dylib/!d' -e '/^\/usr\//d' | sort | uniq); do
for lib in $($otool -L "$1" | sed -e '/:$/d' -e 's/[[:blank:]]*//' -e 's/[[:blank:]].*//' -e '/libSystem/d' -e '/.*\.dylib/!d' -e '/^\/usr\//d' | sort | uniq); do
libpath="$OSX_ROOT$lib"
libname="${lib##*/}"