X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fxonotic-map-compiler-autobuild;h=8249686daa0559d1f321b09f9dd749cbf2da36d5;hp=668363650969d147f96b4e25e78d7c4068c3aa34;hb=623a131a558d528a5ddc58ca580980ef8d4067db;hpb=ce515788e50b5b2ba2ab6c89ddb1c76d28f9af09 diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 66836365..8249686d 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -4,6 +4,8 @@ bspdir="$PWD/bspfiles" mkdir -p "$bspdir" cd data/xonotic-maps.pk3dir git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do + git reset --hard + git clean -xfd git checkout "$HASH" for F in maps/*.map.options; do if ! [ -f "$F" ]; then @@ -22,7 +24,7 @@ git for-each-ref 'refs/remotes' | while read -r HASH TYPE REFNAME; do cd maps ../../../misc/tools/xonotic-map-compiler "$M" -noshaderlist `head -n 1 "../$F"` 2>&1 | tee "$M.log" ) - zip -9r "$bspdir/$blobhash.pk3" "maps/$M.bsp" "maps/$M.log" "maps/$M/" "gfx/${M}_mini.tga" + zip -9r "$bspdir/$blobhash.pk3" "maps/$M.bsp" "maps/$M.log" "maps/$M/" "maps/$M.lin" "gfx/${M}_mini.tga" done done git checkout master