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

Bruce Dubbs bruce.dubbs at gmail.com
Sat Mar 1 09:34:58 PST 2014


John Burrell wrote:
> 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?

Yes. I'll change it.

   -- Bruce




More information about the blfs-dev mailing list