X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=misc%2Ftools%2Fxonotic-map-compiler-autobuild;h=aefafea128c1c49e4536105abe69359a433724bf;hb=566746bbb678508b62a6318aa0abca7cd1a3bf5c;hp=0b5cd720e4671f04d8937b933df95d802f01bf1c;hpb=e3f69c1240066b38f96cf54e8c8a3a90f6710202;p=xonotic%2Fxonotic.git diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 0b5cd720..aefafea1 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -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 1800 -vis_timeout 3600 -light_timeout 14400 -minimap_timeout 900 -scale_timeout 900" -screenshot_override="9 600 +g_ctf 1" +screenshot_override="9 900 5 +g_ctf 1" getthemap_fail=false @@ -163,7 +163,7 @@ buildthemap() M=$3 blobhash=$4 commithash=$5 - if HEAD "$url$M-$blobhash.pk3"; then + if lwp-request -m HEAD "$url$M-$blobhash.pk3"; then continue fi @@ -213,7 +213,7 @@ screenshotthemap() M=$3 blobhash=$4 commithash=$5 - if HEAD "$url$M-$blobhash/"; then + if lwp-request -m HEAD "$url$M-$blobhash/"; then continue fi @@ -226,11 +226,16 @@ screenshotthemap() ( cd ../.. if [ -n "$DISPLAY" ]; then - misc/tools/xonotic-map-screenshot "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" + misc/tools/xonotic-map-screenshot "$M" $screenshot_override $DRIVERFLAGS +"scr_screenshot_name \"$M-\"" else - #startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -- :8 - #startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -gl_driver /usr/local/lib/gallium3d/libGL.so -- /usr/bin/Xvfb :8 -screen 0 1024x768x24 - startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -- /usr/bin/Xvfb :8 -screen 0 1024x768x24 + case "$DRIVER" in + gl) + startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override $DRIVERFLAGS +"scr_screenshot_name \"$M-\"" -- :8 + ;; + soft|*) + startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"vid_soft 1" $DRIVERFLAGS +"scr_screenshot_name \"$M-\"" -- /usr/bin/Xvfb :8 -screen 0 1024x768x24 + ;; + esac fi ) if ! mv ~/.xonotic/data/screenshots "$M-$blobhash"; then @@ -357,7 +362,7 @@ case "$1" in runmakeindex ;; download) - if ! cd data/xonotic-maps.pk3dir; then + if ! cd data/xonotic-maps.pk3dir >/dev/null 2>&1; then echo "data/xonotic-maps.pk3dir does not exist, not downloading" exit 0 fi