From cab2f1c803dec9125a3070846cf37d241b431709 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 10 Jul 2013 21:57:59 +0200 Subject: [PATCH] ./all compile-map: generate logfile and pack into the .pk3 --- misc/tools/all/xonotic.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index ba29aa5d..805a9103 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -18,12 +18,12 @@ case "$cmd" in if [ ! -f "$mapfile" ] ; then msg "ERROR, $mapfile not found!" else - time misc/tools/xonotic-map-compiler-optionsfile "$mapfile" // map is compiled now + time misc/tools/xonotic-map-compiler-optionsfile "$mapfile" |& tee data/xonotic-maps.pk3dir/$mapname.log cd data/xonotic-maps.pk3dir mapblobhash=`git rev-parse --revs-only "HEAD:maps/$mapname.map.options" || true`-`git rev-parse --revs-only "HEAD:maps/$mapname.map" || true` mapnamezip=${mapname##*/} echo "Compressing to .pk3..." - zip -9r "$mapnamezip-$mapblobhash.pk3" "maps/$mapname.bsp" "maps/$mapname/" "gfx/${mapnamezip}_mini.tga" + zip -9r "$mapnamezip-$mapblobhash.pk3" "maps/$mapname.bsp" "maps/$mapname/" "gfx/${mapnamezip}_mini.tga" "$mapname.log" mv -f "$mapnamezip-$mapblobhash.pk3" ../ verbose "$SELF" update-maps fi -- 2.39.2