This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] /bin/grep -e and solaris
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 27 Jun 2002 11:48:34 -0400
- Subject: [patch] /bin/grep -e and solaris
Just FYI,
Turns out that Solaris /bin/grep doesn't like -e. I've checked in the
attached (the -e wasn't needed anyway). Thanks to PeterS for pointing
this out.
Andrew
2002-06-27 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (init.c): Drop -e option to grep. Not necessary and
Solaris /bin/grep does not not like it. From Peter Schauer.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.214
diff -u -r1.214 Makefile.in
--- Makefile.in 26 Jun 2002 16:07:16 -0000 1.214
+++ Makefile.in 27 Jun 2002 15:44:21 -0000
@@ -876,7 +876,7 @@
-e 's|\([^ ][^ ]*\)|$(srcdir)/\1|g' | \
while read f; do grep '^_initialize_[a-z_0-9A-Z]* *(' $$f 2>/dev/null; done | \
sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/\1/' | \
- ( echo _initialize_gdbtypes ; grep -v -e '^_initialize_gdbtypes$$' ) > init.l-tmp
+ ( echo _initialize_gdbtypes ; grep -v '^_initialize_gdbtypes$$' ) > init.l-tmp
@echo '/* Do not modify this file. */' >>init.c-tmp
@echo '/* It is created automatically by the Makefile. */'>>init.c-tmp
@echo '#include "defs.h"' >>init.c-tmp