From cd1d2d572397b807cd879790e398ca27d7640a54 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sun, 27 Jul 2014 11:09:33 +0300 Subject: [PATCH] Update build.sh script to use Git. --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 9b0b473..5b6cbc5 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh VERSION="zombiereloaded-3.1" -REVISION=$(hg id -n) +REVISION=$(git rev-parse --short HEAD) SYNTAX="Usage: $0 [--patch ]" @@ -18,7 +18,7 @@ SOURCE_DEST=$RELEASEDIR/addons/sourcemod/scripting DOCS_DEST=$RELEASEDIR/zrdocs PLUGINDIR=$RELEASEDIR/addons/sourcemod/plugins EXTENSIONDIR=$RELEASEDIR/addons/sourcemod/extensions -ZIPFILE=$VERSION-r$REVISION.zip +ZIPFILE=$VERSION-$REVISION.zip MAKEPATCH=false @@ -47,7 +47,7 @@ then exit 1 fi - ZIPFILE=$VERSION-patch-r$PATCHREV-r$REVISION.zip + ZIPFILE=$VERSION-patch-$PATCHREV-$REVISION.zip else echo "Missing base revision number. $SYNTAX" exit 1