[blfs-dev] QT-4.8.5 in /opt: sed command problem

John Burrell john_burrell at hotmail.com
Sat Mar 1 07:13:49 PST 2014


The book has this:

for file in `basename -a -s .prl $QTDIR/lib/lib*.prl`; do
   sed -r '/^QMAKE_PRL_BUILD_DIR/d'    \
       -r 's/(QMAKE_PRL_LIBS =).*/\1/' \
       -i $QTDIR/lib/${file}.prl

   perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/${file##lib}.pc
done

Shouldn't it be:

for file in `basename -a -s .prl $QTDIR/lib/lib*.prl`; do
   sed -e '/^QMAKE_PRL_BUILD_DIR/d'    \
       -r -e 's/(QMAKE_PRL_LIBS =).*/\1/' \
       -i $QTDIR/lib/${file}.prl

   perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/${file##lib}.pc
done

to make it work properly?

jb. 		 	   		  


More information about the blfs-dev mailing list