From: Andrew Cagney Date: Wed, 13 Jun 2001 19:00:22 +0000 (+0000) Subject: Handle GDB's gdb/version.in. X-Git-Tag: dberlin-typesystem-branchpoint~247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31a8b63419de359734d3e3a309cfe71b92dc264f;p=external%2Fbinutils.git Handle GDB's gdb/version.in. --- diff --git a/ChangeLog b/ChangeLog index 9ab0fd9..e90989f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 8 11:14:02 2001 Andrew Cagney + + * Makefile.in (VER): When present, extract the version number from + the file version.in. + 2001-06-08 Alexandre Oliva , Jeff Sturm * Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): If diff --git a/Makefile.in b/Makefile.in index 1c83f5c..8b442f0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1759,8 +1759,12 @@ SUPPORT_FILES = list-of-support-files-for-tool-in-question # 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 \ + elif test -f $(TOOL)/version.in; then \ + head -1 $(TOOL)/version.in; \ + elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \ sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ + else \ + echo VERSION; \ fi` PACKAGE = $(TOOL)