maillog: 20/11/2004-13:31:42(+0200): Eldad Zack types > On Saturday 20 November 2004 13:28, Eldad Zack wrote: > > On Saturday 20 November 2004 08:14, Chris White wrote: > > > I created this quick little function to recursively patch Makefiles > > > with custom CFLAGS. > > > > wouldn't it be simpler to do: > > What I really meant was: > > for makefile in $(find -name "Makefile" .) > do > sed -i \ > -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ > -e "s:^CXXFLAGS.*:CXXFLAGS = ${CXXFLAGS}:" \ > ${makefile} \ > || die "Could not patch ${makefile} for custom CFLAGS" > done Instead of replacing all Makefiles, couldn't one simply make "CFLAGS=${CFLAGS}" "CXXFLAGS=${CXXFLAGS}" ? -- ) Georgi Georgiev ) RAM wasn't built in a day. ) ( chutz@gg3.net ( ( ) +81(90)6266-1163 ) )