5 if ! lockfile-create "$me"; then
8 lockfile-touch "$me" & lockpid=$!
9 trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT
10 trap 'exit 1' INT TERM
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
17 cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
18 cmake --build build -- q3map2
20 sh -x ./misc/tools/xonotic-map-compiler-autobuild build