X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src-release;h=c2f4727b35ebd86794e77c7a3b449c22b3176b09;hb=3f983d475ae51820e37978b443c327b13650faaa;hp=cba438492415794ebe2c147612700fbc22e1106d;hpb=860144e4f65b554c76354501e8438047ea446e4b;p=deliverable%2Fbinutils-gdb.git diff --git a/src-release b/src-release index cba4384924..c2f4727b35 100644 --- a/src-release +++ b/src-release @@ -67,9 +67,15 @@ SUPPORT_FILES = list-of-support-files-for-tool-in-question # NOTE: No double quotes in the below. It is used within shell script # as VER="$(VER)" VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \ - sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ + bfd/configure --version | sed -n -e '1s,.* ,,p'; \ elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ + elif test -f $(TOOL)/common/create-version.sh; then \ + $(TOOL)/common/create-version.sh $(TOOL) \ + 'dummy-host' 'dummy-target' \ + VER.tmp; \ + cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-cvs$$//'; \ + rm -f VER.tmp; \ elif test -f $(TOOL)/version.in; then \ head -1 $(TOOL)/version.in; \ elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \