Update build.sh script to use Git.

This commit is contained in:
Richard Helgeby 2014-07-27 11:09:33 +03:00
parent 0e6c2dc909
commit cd1d2d5723

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
VERSION="zombiereloaded-3.1" VERSION="zombiereloaded-3.1"
REVISION=$(hg id -n) REVISION=$(git rev-parse --short HEAD)
SYNTAX="Usage: $0 [--patch <base rev>]" SYNTAX="Usage: $0 [--patch <base rev>]"
@ -18,7 +18,7 @@ SOURCE_DEST=$RELEASEDIR/addons/sourcemod/scripting
DOCS_DEST=$RELEASEDIR/zrdocs DOCS_DEST=$RELEASEDIR/zrdocs
PLUGINDIR=$RELEASEDIR/addons/sourcemod/plugins PLUGINDIR=$RELEASEDIR/addons/sourcemod/plugins
EXTENSIONDIR=$RELEASEDIR/addons/sourcemod/extensions EXTENSIONDIR=$RELEASEDIR/addons/sourcemod/extensions
ZIPFILE=$VERSION-r$REVISION.zip ZIPFILE=$VERSION-$REVISION.zip
MAKEPATCH=false MAKEPATCH=false
@ -47,7 +47,7 @@ then
exit 1 exit 1
fi fi
ZIPFILE=$VERSION-patch-r$PATCHREV-r$REVISION.zip ZIPFILE=$VERSION-patch-$PATCHREV-$REVISION.zip
else else
echo "Missing base revision number. $SYNTAX" echo "Missing base revision number. $SYNTAX"
exit 1 exit 1