src-release: Strip "-cvs" from GDB source dir and tarball.
authorJoel Brobecker <brobecker@gnat.com>
Sat, 17 Aug 2013 01:07:52 +0000 (01:07 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 17 Aug 2013 01:07:52 +0000 (01:07 +0000)
The nightly snapshots we have been creating in the past did not
include the "-cvs" suffix at the end of the version number. Snapshot
packaging started breaking ever since GDB switched to using BFD's
version number. Things got partially fixed with the previous change
to this file, but the change missed the fact that the "-cvs" suffix
in the tarball name (Eg: gdb-7.6.50-20130816-cvs.tar) is undesirable.
This patch removes it.

ChangeLog:

        * src-release (VER): When using $(TOOL)/common/create-version.sh,
        strip the "-cvs" suffix from the version number if present.

ChangeLog
src-release

index 23cf56b96517c882a364b474560d44aadefb294f..f390fa4347932caa089b155afee6b3f72549b05f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-16  Joel Brobecker  <brobecker@adacore.com>
+
+       * src-release (VER): When using $(TOOL)/common/create-version.sh,
+       strip the "-cvs" suffix from the version number if present.
+
 2013-08-12  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
 
        * configure.ac: Sync with GCC repo.
index cf6d266a22d1d60891a8c4d2bac97b68ab1ec027..c2f4727b35ebd86794e77c7a3b449c22b3176b09 100644 (file)
@@ -74,7 +74,7 @@ VER = `       if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null
          $(TOOL)/common/create-version.sh $(TOOL) \
            'dummy-host' 'dummy-target' \
            VER.tmp; \
-         cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/'; \
+         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; \
This page took 0.038864 seconds and 4 git commands to generate.