]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
map compiler autobuild: support a var BUILD_ONE that makes it only perform one build...
authorRudolf Polzer <divverent@alientrap.org>
Fri, 21 Sep 2012 18:40:29 +0000 (20:40 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 21 Sep 2012 18:40:29 +0000 (20:40 +0200)
misc/tools/xonotic-map-compiler-autobuild

index 0ef0c1fe2d911a42ba46cdf82a1915bdef65f974..aa14ddd0da65511e3a34e8562f13d8acfd3894c8 100755 (executable)
@@ -204,6 +204,9 @@ buildthemap()
        if [ -n "$IRCSPAM" ]; then
                $IRCSPAM < "maps/$M.irc" || true
        fi
+       if [ -n "$BUILD_ONE" ]; then
+               exit
+       fi
 }
 
 screenshotthemap()
@@ -255,6 +258,9 @@ screenshotthemap()
        if [ -n "$IRCSPAM" ]; then
                $IRCSPAM < "$M-$blobhash/$M.ircss" || true
        fi
+       if [ -n "$BUILD_ONE" ]; then
+               exit
+       fi
 }
 
 getthemap()