1 |
On Saturday 20 November 2004 13:28, Eldad Zack wrote: |
2 |
> On Saturday 20 November 2004 08:14, Chris White wrote: |
3 |
> > I created this quick little function to recursively patch Makefiles |
4 |
> > with custom CFLAGS. |
5 |
> |
6 |
> wouldn't it be simpler to do: |
7 |
|
8 |
What I really meant was: |
9 |
|
10 |
for makefile in $(find -name "Makefile" .) |
11 |
do |
12 |
sed -i \ |
13 |
-e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ |
14 |
-e "s:^CXXFLAGS.*:CXXFLAGS = ${CXXFLAGS}:" \ |
15 |
${makefile} \ |
16 |
|| die "Could not patch ${makefile} for custom CFLAGS" |
17 |
done |
18 |
|
19 |
-- |
20 |
Eldad Zack <eldad@g.o> |
21 |
Key/Fingerprint at pgp.mit.edu, ID 0x96EA0A93 |