From 412fb97359bc6caaf37f06693ab08ce50308d22c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 5 Oct 2010 22:07:53 +0200 Subject: [PATCH] autobuild: support overriding map bounds for minimap from mapinfo --- misc/tools/xonotic-map-compiler-autobuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 5c6db64d..390b82d1 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -157,7 +157,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` $build_override $minimap_override > "$M.log" ) t1=`date +%s` dt=$(($t1 - $t0)) -- 2.39.2