From 28181522fb3dc660cb00cbe97a3e3e2e42faa61e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 18 Oct 2010 19:20:05 +0200 Subject: [PATCH] add infrastructure scripts as a backup --- misc/infrastructure/xonotic-map-compiler.cron | 17 +++++ .../xonotic-map-screenshot.cron | 37 +++++++++++ .../infrastructure/xonotic-release-build.cron | 65 +++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100755 misc/infrastructure/xonotic-map-compiler.cron create mode 100755 misc/infrastructure/xonotic-map-screenshot.cron create mode 100755 misc/infrastructure/xonotic-release-build.cron 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)