This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[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

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