]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
simplify RELEASETYPE handling
authorRudolf Polzer <divverent@alientrap.org>
Tue, 14 Dec 2010 19:43:47 +0000 (20:43 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 14 Dec 2010 19:43:47 +0000 (20:43 +0100)
all

diff --git a/all b/all
index 35e23577732915c58d167ceba7a42ecbb9d0d13e..de82d83d3b82efce495fedf1c8c1e8af3518c760 100755 (executable)
--- a/all
+++ b/all
@@ -1437,13 +1437,7 @@ case "$cmd" in
        release-prepare)
                #"$SELF" each git clean -fxd
                case "$RELEASETYPE" in
-                       beta)
-                               msg "Building a BETA"
-                               ;;
-                       release)
-                               msg "Building a RELEASE"
-                               ;;
-                       *)
+                       '')
                                $ECHO >&2 -n "$ESC[2J$ESC[H"
                                msg ""
                                msg ""
@@ -1485,6 +1479,12 @@ case "$cmd" in
                                #   (YYYYMMDD)
                                exit 1
                                ;;
+                       release)
+                               msg "Building a FINISHED RELEASE"
+                               ;;
+                       *)
+                               msg "Building a $RELEASETYPE"
+                               ;;
                esac
                verbose rm -rf Xonotic Xonotic*.zip
                verbose mkdir -p Xonotic
@@ -1652,15 +1652,7 @@ case "$cmd" in
                verbose "$SELF" update-maps
                ;;
        release-qc)
-               case "$RELEASETYPE" in
-                       beta)
-                               verbose make -C Xonotic/source FTEQCC="../../../fteqcc/fteqcc.linux32" XON_BUILDSYSTEM=1 clean all
-                               # back out of: source/qcsrc/server
-                               ;;
-                       release)
-                               verbose make -C Xonotic/source FTEQCC="../../../fteqcc/fteqcc.linux32" XON_BUILDSYSTEM=1 clean all
-                               ;;
-               esac
+               verbose make -C Xonotic/source FTEQCC="../../../fteqcc/fteqcc.linux32" XON_BUILDSYSTEM=1 clean all
                verbose rm -f Xonotic/source/*/fteqcc.log
                ;;
        release-buildpk3-transform-raw)
@@ -1741,8 +1733,10 @@ case "$cmd" in
                        patch=$(($gv - $major * 10000 - $minor * 100))
                        versionstr="$major.$minor.$patch"
                        case "$RELEASETYPE" in
-                               beta)
-                                       versionstr="$versionstr""beta"
+                               release)
+                                       ;;
+                               *)
+                                       versionstr="$versionstr$RELEASETYPE"
                                        ;;
                        esac
                        verbose sed -i "