Updated build script to exit if tip revision and base revision is the same when building patches.
This commit is contained in:
parent
72d75b5089
commit
3e702b0340
14
build.sh
14
build.sh
@ -2,8 +2,9 @@
|
||||
|
||||
RELEASEDIR=release
|
||||
BUILDDIR=build
|
||||
VERSION=$(hg id -b)-$(hg id -n)
|
||||
ZIPFILE=$VERSION.zip
|
||||
VERSION=$(hg id -b)
|
||||
REVISION=$(hg id -n)
|
||||
ZIPFILE=$VERSION-$REVISION.zip
|
||||
|
||||
PLUGINFILES="cstrike/*"
|
||||
DOCS="docs/*"
|
||||
@ -35,7 +36,14 @@ then
|
||||
then
|
||||
MAKEPATCH=true
|
||||
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
|
||||
echo "Missing base revision number. Usage: build.sh patch <base rev>"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user