From: Rudolf Polzer Date: Fri, 21 Sep 2012 18:40:29 +0000 (+0200) Subject: map compiler autobuild: support a var BUILD_ONE that makes it only perform one build... X-Git-Tag: xonotic-v0.7.0~37^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f24d0a7732443b5f99735868a909e33641589d7;p=xonotic%2Fxonotic.git map compiler autobuild: support a var BUILD_ONE that makes it only perform one build per invocation --- diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 0ef0c1fe..aa14ddd0 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -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()