]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
prefer CTF when making map autobuilds
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 3289aef93ebbd6bff80f5a77c6de9dcc6047ec42..af49c9bf2b0f92fd3681e50a258d95f34ab7e5cc 100755 (executable)
@@ -8,7 +8,7 @@ url_ssh=xonotic-beta:autobuild-bsp/
 build_cachedir="$HOME/xonotic-map-compiler.cache/"
 screenshot_cachedir="$HOME/xonotic-map-screenshot.cache/"
 build_override="-bsp_timeout 900 -vis_timeout 3600 -light_timeout 14400 -minimap_timeout 900 -scale_timeout 900"
-screenshot_override="9 300"
+screenshot_override="9 300 +g_ctf 1"
 
 getthemap_fail=false
 
@@ -243,6 +243,11 @@ case "$1" in
        build)
                cd data/xonotic-maps.pk3dir
                git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do
+                       case "$REFNAME" in
+                               */archived/*)
+                                       continue
+                                       ;;
+                       esac
                        if [ -f "$build_cachedir/$HASH" ]; then
                                continue
                        fi
@@ -257,6 +262,11 @@ case "$1" in
        screenshot)
                cd data/xonotic-maps.pk3dir
                git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do
+                       case "$REFNAME" in
+                               */archived/*)
+                                       continue
+                                       ;;
+                       esac
                        if [ -f "$screenshot_cachedir/$HASH" ]; then
                                continue
                        fi