5 cd data/xonotic-maps.pk3dir
6 git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do
8 for F in maps/*.map.options; do
12 if ! [ -f "${F%.options}" ]; then
17 blobhash="$M"-`git ls-files -s -- "$F" | cut -d ' ' -f 2`-`git ls-files -s -- "${F%.options}" | cut -d ' ' -f 2`
18 if [ -f "$bspdir/$blobhash.pk3" ]; then
23 ../../../misc/tools/xonotic-map-compiler "$M" -noshaderlist `head -n 1 "../$F"` 2>&1 | tee "$M.log"
25 zip -9r "$bspdir/$blobhash.pk3" "maps/$M.bsp" "maps/$M.log" "maps/$M/" "gfx/${M}_mini.tga"