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: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [patch] Extract version number from version.in
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 08 Jun 2001 09:18:46 -0700
- 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>
Andrew Cagney <ac131313@cygnus.com> writes:
> --- 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