From f3f7986e227572d9ed34fb69e3e1d9f292fb5b14 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 24 Apr 2011 08:17:52 +0200 Subject: [PATCH] use hg id as snap version --- src/makesrcdist.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/makesrcdist.sh b/src/makesrcdist.sh index 41e8910f..d54cbd5b 100644 --- a/src/makesrcdist.sh +++ b/src/makesrcdist.sh @@ -60,7 +60,7 @@ test $# -eq 1 || usage echo dotag $dotag snap $snap if test $snap = yes ; then - version=`date +%s` + version=`hg id | awk '{print $1}'` versionforcvs=$version TAG="" else @@ -138,6 +138,9 @@ rm -f lib/*.dep rm -rf CMakeCache.txt CMakeFiles/ CMakeTmp/ CPack* CTestTestfile.cmake cmake_* *automoc* lib builddir) $TAR chfX - excludefile . | (cd $topdir;$TAR xf -) +if test $snap = "yes" ; then + echo $version > $topdir/VERSION +fi # Fix the single/multiple page link in the header (we dont deliver the # multi-page version and the file name is wrong anyway