This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] re-fix init.c duplicate elimination
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 10 Feb 2004 11:45:26 -0500
- Subject: [commit] re-fix init.c duplicate elimination
I didn't copy the script for removing duplicates correctly (peters
pointed this out).
committed (and really tested),
Andrew
2004-02-10 Andrew Cagney <cagney@redhat.com>
* Makefile.in (init.c): Fix script removing duplicates. Problem
reported by Peter Schauer.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.492
diff -u -r1.492 Makefile.in
--- Makefile.in 9 Feb 2004 05:29:53 -0000 1.492
+++ Makefile.in 10 Feb 2004 16:43:09 -0000
@@ -1055,9 +1055,9 @@
sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' $$f 2>/dev/null; \
done | \
while read f; do \
- case "$$fs" in \
- "* $$f *") ;; \
- *) echo $$f ; fs="$$fs $$f ";; \
+ case " $$fs " in \
+ *" $$f "* ) ;; \
+ * ) echo $$f ; fs="$$fs $$f";; \
esac; \
done >> init.l-tmp
@echo '/* Do not modify this file. */' >>init.c-tmp