This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Small patchlet for Makefile.gen.sh
- From: Mark Wielaard <mark at klomp dot org>
- To: frysk at sourceware dot org
- Date: Thu, 06 Jul 2006 13:18:14 +0200
- Subject: Small patchlet for Makefile.gen.sh
Hi,
Makefile.gen.sh depends on the output of grep to include the filename.
If you only have one .cxx file in your cni directory it doesn't
correctly parse the include statements. This patch fixes that by adding
-H to the grep invocation to force it to output the filename.
2006-07-06 Mark Wielaard <mark@klomp.org>
* Makefile.gen.sh: Add -H to grep invocation.
Committed to frysk-core/common. Through the magic of cvs modules this
should show up in all Makefile.gen.sh in the tree.
Cheers,
Mark
--- frysk-core/common/Makefile.gen.sh 12 May 2006 17:07:13 -0000
1.105
+++ frysk-core/common/Makefile.gen.sh 6 Jul 2006 11:13:16 -0000
@@ -411,7 +411,7 @@
do
find $d -name "[A-Za-z]*.cxx" -print
done \
- | xargs grep '#include ".*.h"' \
+ | xargs grep -H '#include ".*.h"' \
| sed -e 's/\.cxx:#include "/.o /' -e 's/\.h".*$//' -e 's/$.*//' \
| while read o h
do