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

Fernando de Oliveira famobr at yahoo.com.br
Sat Mar 1 10:38:11 PST 2014


Em 01-03-2014 14:34, Bruce Dubbs escreveu:
> 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
> 

Please, wait a minute, solving a problem, I found another that could
more easily and generaly be solved in this page. Will write in a minute.

-- 
[]s,
Fernando



More information about the blfs-dev mailing list