]> de.git.xonotic.org Git - xonotic/xonotic.git/blob - misc/infrastructure/xonotic-map-compiler.cron
Fix macOS SDL2 framework permissions
[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 -ex
13 [ -d xonotic-map-compiler ] || git clone git://git.xonotic.org/xonotic/xonotic.git xonotic-map-compiler
14 cd xonotic-map-compiler
15 ./all clean -m -fU -D # like reclone but do not delete untracked, so q3map2.x86 compile stays
16 cd netradiant
17 cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
18 cmake --build build -- q3map2
19 cd ..
20 sh -x ./misc/tools/xonotic-map-compiler-autobuild build