Updated build script to exit if tip revision and base revision is the same when building patches.

This commit is contained in:
richard 2009-11-19 06:36:55 +01:00
parent 72d75b5089
commit 3e702b0340

View File

@ -2,8 +2,9 @@
RELEASEDIR=release RELEASEDIR=release
BUILDDIR=build BUILDDIR=build
VERSION=$(hg id -b)-$(hg id -n) VERSION=$(hg id -b)
ZIPFILE=$VERSION.zip REVISION=$(hg id -n)
ZIPFILE=$VERSION-$REVISION.zip
PLUGINFILES="cstrike/*" PLUGINFILES="cstrike/*"
DOCS="docs/*" DOCS="docs/*"
@ -35,7 +36,14 @@ then
then then
MAKEPATCH=true MAKEPATCH=true
PATCHREV="$2" PATCHREV="$2"
ZIPFILE=$VERSION-patch_$PATCHREV.zip
if [ "$2" = $REVISION ]
then
echo "No changes since base revision."
exit 1
fi
ZIPFILE=$VERSION-patch-$REVISION-$PATCHREV.zip
else else
echo "Missing base revision number. Usage: build.sh patch <base rev>" echo "Missing base revision number. Usage: build.sh patch <base rev>"
exit 1 exit 1