From: Andrew Cagney Date: Tue, 10 Feb 2004 16:43:58 +0000 (+0000) Subject: 2004-02-10 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ff2cc4dfbf4f37d2922491e0e4f3d0e0dad5199;p=binutils-gdb.git 2004-02-10 Andrew Cagney * Makefile.in (init.c): Fix script removing duplicates. Problem reported by Peter Schauer. --- 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