From 4ff2cc4dfbf4f37d2922491e0e4f3d0e0dad5199 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 10 Feb 2004 16:43:58 +0000 Subject: [PATCH] 2004-02-10 Andrew Cagney * Makefile.in (init.c): Fix script removing duplicates. Problem reported by Peter Schauer. --- gdb/ChangeLog | 5 +++++ gdb/Makefile.in | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a605e618345..fc6961febfa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-02-10 Andrew Cagney + + * Makefile.in (init.c): Fix script removing duplicates. Problem + reported by Peter Schauer. + 2004-02-09 Elena Zannoni * bcache.c (bcache_xmalloc): Use obstack_init instead of diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9861f2bab8f..17bcb037cb2 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1055,9 +1055,9 @@ init.c: $(INIT_FILES) 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 -- 2.30.2