Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2013-07-22 19:17:20 +0400
committerJoel Brobecker <brobecker@adacore.com>2013-07-22 19:17:20 +0400
commit9cb407b52458fdf26b531fdf943f7a0f222a472a (patch)
tree51ed72fba5e4900d0857366dcd0388eac8f5ff57 /src-release
parent3fdddd7d770984279daaca52afa9869aaa98d07c (diff)
src-release: Fix VER computation for TOOL=gdb
Without this patch, the DATE marker in gdb/version.in does not get replaced by the source packaging date, causing the name of the tarball being created to: have the DATE marker in the tarball name and the name of the directory the sources unpack to (Eg: gdb-7.6.50-DATE-cvs.tar instead of gdb-7.6.50-20130710-cvs.tar). ChangeLog: * src-release (VER): Use $(TOOL)/common/create-version.sh if it exists.
Diffstat (limited to 'src-release')
-rw-r--r--src-release6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-release b/src-release
index c388cbe5a..cf6d266a2 100644
--- a/src-release
+++ b/src-release
@@ -70,6 +70,12 @@ VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null
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/'; \
+ 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 \