Code: Select all
sed "s/CFLAGS = \(.*\)/CFLAGS = $CFLAGS \1/" config.mk
root-tail: The sed line should really be:
Code: Select all
sed -i "s/-O2/$CFLAGS/" Makefile
Code: Select all
sed "s/CFLAGS = \(.*\)/CFLAGS = $CFLAGS \1/" config.mk
Code: Select all
sed -i "s/-O2/$CFLAGS/" Makefile
hehe (I wrote it down already...on paper)gapan wrote: root-tail: The sed line should really be:(capital "o" instead of zero and a dollar sign in front of CFLAGS )Code: Select all
sed -i "s/-O2/$CFLAGS/" Makefile