]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
midichannels: support multiple inputs
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 5884e65c80db0782795bb2e9e5db24b2fc8b9336..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()
@@ -361,6 +367,10 @@ case "$1" in
                runmakeindex
                ;;
        download)
+               if ! which unzip >/dev/null 2>&1; then
+                       echo "Cannot find unzip, bailing out"
+                       exit 1
+               fi
                if ! cd data/xonotic-maps.pk3dir >/dev/null 2>&1; then
                        echo "data/xonotic-maps.pk3dir does not exist, not downloading"
                        exit 0