From: Matthias Krüger Date: Sat, 10 Aug 2013 11:43:15 +0000 (+0200) Subject: ./all compile-map: write a logfile into data/xonotic-maps.pk3dir/maps/${mapname}.log X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmatthiaskrgr%2Fall_compile_map_log;p=xonotic%2Fxonotic.git ./all compile-map: write a logfile into data/xonotic-maps.pk3dir/maps/${mapname}.log --- 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 ;;