Andrew Benton wrote:
> On Mon, 12 Dec 2011 13:08:58 -0600
> Bruce Dubbs <[email protected]> wrote:
>                             \
>>           sed -ir -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1'  \
>>                   -e 's#BUILD_ARCHIVE :*= 1#NO_&#'         \
>>                   -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g' \
> 
> This is wrong, the brackets should be escaped from sed like so:
>>                   -e '/^USEDLIBS/s# \([A-Za-z]*\).a# -l\1#g' \

Then why is is working for me?   Note 'sed -ir'

$cat sedtest
USEDLIBS module.a

$ cat sedtest | sed -r -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g'
USEDLIBS -lmodule

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to