]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Make the Xonotic maps no longer exempt of the sRGB requirement, now that all fulfill...
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 9 Sep 2015 13:36:00 +0000 (15:36 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 9 Sep 2015 13:36:00 +0000 (15:36 +0200)
misc/tools/xonotic-map-compiler-autobuild

index 08c902ca90f65f8044dfe74e1cbf3cd79fbabb81..bbcedec0ddbc6a2db0fb9056a28b3a75d488ce6f 100755 (executable)
@@ -184,36 +184,21 @@ buildthemap()
                is_nosrgb=false
        fi
        allow_build=true
-       case "$M" in
-               afterslime|dance|drain|glowplant|leave_em_behind|newtonian-nightmare|nexballarena|oilrig|red-planet|runningmanctf|runningman|space-elevator|stormkeep|techassault|xoylent)
-                       if $is_nosrgb; then
+       if $is_nosrgb; then
+               case "$REFNAME" in
+                       master|refs/heads/master|origin/master|refs/remotes/origin/master)
                                if [ -n "$IRCSPAM" ]; then
-                                       echo "\ 38NOTE:\ f map $M still uses -nosRGB. This should eventually get fixed." | $IRCSPAM || true
+                                       echo "\ 34ERROR: map $M uses -nosRGB. This is not acceptable in master. Please fix." | $IRCSPAM || true
                                fi
-                       else
+                               allow_build=false
+                               ;;
+                       *)
                                if [ -n "$IRCSPAM" ]; then
-                                       echo "\ 39CONGRATULATIONS: map $M does not use -nosRGB any more. Please remove the map name from the list in xonotic-map-compiler-autobuild once this is merged to master." | $IRCSPAM || true
+                                       echo "\ 34WARNING:\ f map $M uses -nosRGB. This is not acceptable in master. Please fix." | $IRCSPAM || true
                                fi
-                       fi
-                       ;;
-               *)
-                       if $is_nosrgb; then
-                               case "$REFNAME" in
-                                       master|refs/heads/master|origin/master|refs/remotes/origin/master)
-                                               if [ -n "$IRCSPAM" ]; then
-                                                       echo "\ 34ERROR: map $M uses -nosRGB. This is not acceptable in master. Please fix." | $IRCSPAM || true
-                                               fi
-                                               allow_build=false
-                                               ;;
-                                       *)
-                                               if [ -n "$IRCSPAM" ]; then
-                                                       echo "\ 34WARNING:\ f map $M uses -nosRGB. This is not acceptable in master. Please fix." | $IRCSPAM || true
-                                               fi
-                                               ;;
-                               esac
-                       fi
-                       ;;
-       esac
+                               ;;
+               esac
+       fi
 
        set +e
        $allow_build && (