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