From: Matthias Krüger Date: Wed, 10 Jul 2013 19:57:59 +0000 (+0200) Subject: ./all compile-map: generate logfile and pack into the .pk3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cab2f1c803dec9125a3070846cf37d241b431709;p=xonotic%2Fxonotic.git ./all compile-map: generate logfile and pack into the .pk3 --- 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