gdb/testsuite/
[deliverable/binutils-gdb.git] / src-release
index cba438492415794ebe2c147612700fbc22e1106d..c2f4727b35ebd86794e77c7a3b449c22b3176b09 100644 (file)
@@ -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 \
This page took 0.023186 seconds and 4 git commands to generate.