]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/infrastructure/xonotic-map-compiler.cron
Merge branch 'master' of git://git.xonotic.org/xonotic/xonotic
[xonotic/xonotic.git] / misc / infrastructure / xonotic-map-compiler.cron
1 #!/bin/sh
2
3 mepwd=$PWD
4 me=$0
5 if ! lockfile-create "$me"; then
6         exit 1
7 fi
8 lockfile-touch "$me" & lockpid=$!
9 trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT
10 trap 'exit 1' INT TERM
11
12 set -e
13 cd xonotic-map-compiler
14 ./all clean -m -fU -D
15 # like reclone but do not delete untracked, so q3map2.x86 compile stays
16 make -C netradiant install/q3map2.x86
17 ./misc/tools/xonotic-map-compiler-autobuild build