]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
check RELEASETYPE var
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 199b776839dc494429af7d36f2b5abe4c7d319dc..50904c9d356caba8e43b748139f7d255029606d8 100755 (executable)
--- a/all
+++ b/all
@@ -860,6 +860,18 @@ case "$cmd" in
        # release building goes here
        release-prepare)
                #"$SELF" each git clean -fxd
+               case "$RELEASETYPE" in
+                       beta)
+                               msg "Building a BETA"
+                               ;;
+                       release)
+                               msg "Building a RELEASE"
+                               ;;
+                       *)
+                               msg "Must either set RELEASETYPE=beta or RELEASETYPE=release"
+                               exit 1
+                               ;;
+               esac
                verbose rm -rf Xonotic Xonotic*.zip
                verbose mkdir -p Xonotic
                verbose date +%Y%m%d > Xonotic/stamp.txt