From a773746181f4db7ca35f299e40ec9fc07df4e943 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Wed, 23 Jul 2014 14:40:48 +0200 Subject: [PATCH] Fix updateversion.sh. Now using Git. --- updateversion.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updateversion.sh b/updateversion.sh index 9d43b92..95054ca 100755 --- a/updateversion.sh +++ b/updateversion.sh @@ -23,7 +23,7 @@ ZR_VERSION_FILE="src/zr/hgversion.h.inc" ZR_PRODUCT_NAME="Zombie:Reloaded" ZR_COPYRIGHT="Copyright (C) 2009-2013 Greyscale, Richard Helgeby" ZR_BRANCH="zr-3.1" -ZR_REVISION=$(hg id -n):$(hg id -i) +ZR_REVISION=$(git rev-parse --short HEAD) if [ $ZR_UNOFFICIAL = "true" ] then @@ -31,7 +31,7 @@ then fi ZR_LICENSE="GNU GPL, Version 3" -ZR_DATE=$($ZR_DATEPATH -R) +ZR_DATE=$($ZR_DATEPATH) echo "#define ZR_VER_PRODUCT_NAME \"$ZR_PRODUCT_NAME\"" > $ZR_VERSION_FILE echo "#define ZR_VER_COPYRIGHT \"$ZR_COPYRIGHT\"" >> $ZR_VERSION_FILE