This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]