From f5c1f940401ada2291e90636f88aabe98508df6d Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 22 Apr 2012 19:08:33 +0200 Subject: [PATCH] release: Use git instead of hg for version number in tarballs. --- scripts/application.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index d97fef17..ff82db9e 100755 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -25,7 +25,7 @@ if [ "x$TIP" = "x" ]; then fi # Charybdis wants the hg tip to be in include/serno.h, in its own format. -MYTIP=`hg parents --template '{date|shortdate}_{node|short}' 2>/dev/null | sed -e s/-//g -e s/_/-/` +MYTIP=`git log -1 --date=short --pretty=format:%cd_%h 2>/dev/null | sed -e s/-//g -e s/_/-/` echo "[charybdis] Generating include/serno.h for tip $MYTIP." cat << _EOF_ > include/serno.h /* Generated automatically by makepackage. Any changes made here will be lost. */