From da4e7cbc2d8abb45b8c5fa91e7188d6365b87bd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Kr=C3=BCger?= Date: Sat, 10 Aug 2013 13:43:15 +0200 Subject: [PATCH] ./all compile-map: write a logfile into data/xonotic-maps.pk3dir/maps/${mapname}.log --- misc/tools/all/xonotic.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 7214f453..d976ff82 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -12,12 +12,12 @@ case "$cmd" in msg "q3map2 needed! Building netradiant..." make -C netradiant install/q3map2 fi - for mapfile in "$@"; do - mapfile="data/xonotic-maps.pk3dir/maps/$mapfile.map" + for mapname in "$@"; do + mapfile="data/xonotic-maps.pk3dir/maps/$mapname.map" if [ ! -f "$mapfile" ] ; then msg "ERROR, $mapfile not found!" else - time misc/tools/xonotic-map-compiler-optionsfile "$mapfile" + time misc/tools/xonotic-map-compiler-optionsfile "$mapfile" |& tee data/xonotic-maps.pk3dir/maps/$mapname.log fi done ;; -- 2.39.2