From: Rudolf Polzer Date: Mon, 18 Oct 2010 17:20:05 +0000 (+0200) Subject: add infrastructure scripts as a backup X-Git-Tag: xonotic-v0.1.0preview~125^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28181522fb3dc660cb00cbe97a3e3e2e42faa61e;p=xonotic%2Fxonotic.git add infrastructure scripts as a backup --- diff --git a/misc/infrastructure/xonotic-map-compiler.cron b/misc/infrastructure/xonotic-map-compiler.cron new file mode 100755 index 00000000..6434f964 --- /dev/null +++ b/misc/infrastructure/xonotic-map-compiler.cron @@ -0,0 +1,17 @@ +#!/bin/sh + +mepwd=$PWD +me=$0 +if ! lockfile-create "$me"; then + exit 1 +fi +lockfile-touch "$me" & lockpid=$! +trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT +trap 'exit 1' INT TERM + +set -e +cd xonotic-map-compiler +./all clean -m -fU -D +# like reclone but do not delete untracked, so q3map2.x86 compile stays +make -C netradiant install/q3map2.x86 +./misc/tools/xonotic-map-compiler-autobuild build diff --git a/misc/infrastructure/xonotic-map-screenshot.cron b/misc/infrastructure/xonotic-map-screenshot.cron new file mode 100755 index 00000000..829fab87 --- /dev/null +++ b/misc/infrastructure/xonotic-map-screenshot.cron @@ -0,0 +1,37 @@ +#!/bin/sh + +mepwd=$PWD +me=$0 +if ! lockfile-create "$me"; then + exit 1 +fi +lockfile-touch "$me" & lockpid=$! +trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT +trap 'exit 1' INT TERM + +set -e +cd xonotic +./all clean -m -fU -D +# like reclone but do not delete untracked, so q3map2.x86 compile stays +./all compile +export __GL_FSAA_MODE=8 +sh -x ./misc/tools/xonotic-map-compiler-autobuild screenshot + +GET http://beta.xonotic.org/autobuild-bsp/ >/dev/null +cd "$HOME/autobuild-bsp" || exit 1 +now=`date +%s` +deltime=$(($now + 86400)) +grep -l -- '-->(none)