X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fxonotic-map-compiler-autobuild;h=d366157d3df2f4db0f7fc70839c418ddf2e89de3;hp=ccfdfa69ff9935690daedb6952808493031ffe75;hb=54d203c9b171a752a11f3e00bedb8420438b26c0;hpb=3d66ac4f5d5a3243aa5c6740042b38655a77c757 diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index ccfdfa69..d366157d 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -172,7 +172,13 @@ buildthemap() t0=`date +%s` ( cd maps - ../../../misc/tools/xonotic-map-compiler "$M" `grep ^- "$M.map.options" | cut -d '#' -f 1` $build_override > "$M.log" + sz=`grep '^size ' "$M.mapinfo" 2>/dev/null || true` + if [ -n "$sz" ]; then + minimap_override="-minimap + -minmax ${sz#size }" + else + minimap_override= + fi + ../../../misc/tools/xonotic-map-compiler "$M" `grep ^- "$M.map.options" | cut -d '#' -f 1` $minimap_override $build_override > "$M.log" ) t1=`date +%s` dt=$(($t1 - $t0)) @@ -203,10 +209,6 @@ screenshotthemap() continue fi - git reset --hard - git clean -xfd - git checkout -f "$commithash" - rm -rf ~/.xonotic ( cd ../.. @@ -319,6 +321,10 @@ case "$1" in continue fi + git reset --hard + git clean -xfd + git checkout -f "$HASH" + rundownload if $getthemap_fail; then continue