File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ while read path; do
3030 RPATH=$( chrpath -l " $path " 2> /dev/null| grep -e RUNPATH -e RPATH| sed -e ' s#.*RPATH=##g' -e ' s#.*RUNPATH=##g' )
3131 [ -z " $RPATH " ] && continue
3232 NEWRPATH=
33- for RDIR in $( print ' %s\n ' $RPATH | cut -d: --output-delimiter=" " -f1-) ; do
33+ for RDIR in $( echo $RPATH | cut -d: --output-delimiter=" " -f1-) ; do
3434 case $RDIR in
35- /lib|/lib32|/libx32|/lib64) print ' %s \n' removing $RDIR from rpath ;;
36- /usr/lib|/usr/lib32|/usr/libx32|/usr/lib64) print ' %s \n' removing $RDIR from rpath ;;
35+ /lib|/lib32|/libx32|/lib64) printf ' removing %s from rpath \n' $RDIR ;;
36+ /usr/lib|/usr/lib32|/usr/libx32|/usr/lib64) printf ' removing %s from rpath \n' $RDIR ;;
3737 # often RPM %buildroot is in RPATH, delete it
38- * /BUILD/* ) print ' %s \n' removing $RDIR from rpath ;;
38+ * /BUILD/* ) printf ' removing %s from rpath \n' $RDIR ;;
3939 # often for a directory /.libs/ inside %buildroot
40- * /.libs/* |* /.libs) print ' %s \n' removing $RDIR from rpath ;;
40+ * /.libs/* |* /.libs) printf ' removing %s from rpath \n' $RDIR ;;
4141 * )
4242 if [ -z " $NEWRPATH " ]; then
4343 NEWRPATH=" $RDIR "
You can’t perform that action at this time.
0 commit comments