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]

Re: [patch] Extract version number from version.in



>> --- 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




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