]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
fix :)
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 98473d634d1951f9b3cc28d1efef6d94bfb575b2..19703c4769583dbe0427f652748280ab4e6aaea0 100755 (executable)
@@ -3,12 +3,12 @@
 set -e
 
 bspdir="$PWD/data"
-http_url=http://beta.xonotic.org/autobuild-bsp/
+url_http=http://beta.xonotic.org/autobuild-bsp/
 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
 
@@ -205,6 +205,7 @@ screenshotthemap()
        if [ -n "$IRCSPAM" ]; then
                ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$HASH" 0 > "maps/$M.ircss"
        fi
+       chmod 1777 "$M-$blobhash"
        ln -snf "../$M-$blobhash" "$M" # from ALL branches, so beware!
        rsync -vaSHP "$M-$blobhash" "$url_ssh"
        rsync -vaSHP "$M" "$url_ssh""latest/"
@@ -254,7 +255,7 @@ case "$1" in
                        git reset --hard
                        git clean -xfd
                        git checkout -f "$HASH"
-                       allmaps buildthemap "$REFNAME" "$HASH" "$http_url"
+                       allmaps buildthemap "$REFNAME" "$HASH" "$url_http"
                        touch "$build_cachedir/$HASH"
                done
                git checkout -f master
@@ -282,10 +283,10 @@ case "$1" in
                                fi
                        done
                        cd data/xonotic-maps.pk3dir
-                       allmaps getthemap "$http_url" "$bspdir.old" "$bspdir"
+                       allmaps getthemap "$url_http" "$bspdir.old" "$bspdir"
 
                        if ! $getthemap_fail; then
-                               allmaps screenshotthemap "$REFNAME" "$HASH" "$http_url"
+                               allmaps screenshotthemap "$REFNAME" "$HASH" "$url_http"
                                touch "$screenshot_cachedir/$HASH"
                        fi
                done
@@ -299,7 +300,7 @@ case "$1" in
                        fi
                done
                cd data/xonotic-maps.pk3dir
-               allmaps getthemap "$http_url" "$bspdir.old" "$bspdir"
+               allmaps getthemap "$url_http" "$bspdir.old" "$bspdir"
                echo "List of maps that got deleted (if any) and currently are in $bspdir.old:"
                ls -l "$bspdir.old"
                ;;
@@ -307,7 +308,7 @@ case "$1" in
                mkdir -p "$bspdir"
                cd "$bspdir"
                rm -f *-????????????????????????????????????????-????????????????????????????????????????.pk3
-               wget -r -l1 -A "*.pk3" -N --no-parent --no-directories "$http_url""latest"
+               wget -r -l1 -A "*.pk3" -N --no-parent --no-directories "$url_http""latest"
                ;;
        log2spam-test)
                log2spam "mapname" "http://mapurl" "branch" "commit" "0"