This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Extract version number from version.in
- To: Ian Lance Taylor <ian at zembu dot com>
- Subject: Re: [patch] Extract version number from version.in
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 13 Jun 2001 16:43:58 -0400
- Cc: GDB Patches <gdb-patches at sourceware dot cygnus dot com>,Binutils Patches <binutils at sourceware dot cygnus dot com>
- References: <3B20F00F.2030203@cygnus.com> <sizobjj66x.fsf@daffy.airs.com>
>> --- 1759,1771 ----
>> # as VER="$(VER)"
>> VER = ` if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
>> sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
>> ! else if test -f $(TOOL)/version.in; then \
>> ! head -1 $(TOOL)/version.in; \
>> ! else if grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
>> sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
>> ! else \
>> ! echo VERSION; \
>> ! fi fi fi`
>> PACKAGE = $(TOOL)
>> > .PHONY: taz
>
>
> All shells support `elif', which can be used instead of `else if'.
Ian, thanks. I've never been quite sure of this. I've tweeked the
patch accordingly.
Andrew