For some reason not understood, src-release produces tarballs where
the version number in the tarball name includes the "-cvs" suffix.
Looking at the snapshots produced in the past for CVS snashots,
the "-cvs" suffix was NOT included. This new -cvs suffix is therefore
now causing a mismatch between what the scripts expect and what this
makefile produces. This patch fixes the issue by stripping the "-cvs"
suffix, if present, from the version number.
ChangeLog:
* src-release (VER): Strip any "-cvs" suffix from the version
number, if extracted from $(TOOL)/version.in.
+2013-08-29 Joel Brobecker <brobecker@adacore.com>
+
+ * src-release (VER): Strip any "-cvs" suffix from the version
+ number, if extracted from $(TOOL)/version.in.
+
2013-02-15 Yufeng Zhang <yufeng.zhang@arm.com>
* configure.ac: Sync with GCC repo.
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)/version.in; then \
- head -1 $(TOOL)/version.in; \
+ head -1 $(TOOL)/version.in | sed 's/-cvs$$//'; \
elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
else \