Commit 5cd73e8f authored by Roman Haefeli's avatar Roman Haefeli
Browse files

more streamlining

parent ea7f978a
......@@ -70,11 +70,9 @@ make_local_copy_and_set_rpath() {
# make a local copy of all linked libraries of given binary
# and set RUNPATH to $ORIGIN (exclude "standard" libraries)
# arg1: binary to check
ldd $1 | grep ' => ' | while read ldd_line
ldd $1 | grep ' => ' | awk '{ print $1 " " $3 }' | while read libname libpath
do
libname=$(echo "$ldd_line" | awk '{ print $1 }')
libpath=$(echo "$ldd_line" | awk '{ print $3 }')
if ! [ -f "$(basename $libname)" ] && ! library_in_exclude_list "$libname"
if ! [ -f "$libname" ] && ! library_in_exclude_list "$libname"
then
cp "$libpath" .
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment