]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
./all compile-map: write a logfile into data/xonotic-maps.pk3dir/maps/${mapname}.log matthiaskrgr/all_compile_map_log
authorMatthias Krüger <matthias.krueger@famsik.de>
Sat, 10 Aug 2013 11:43:15 +0000 (13:43 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Sat, 10 Aug 2013 11:43:15 +0000 (13:43 +0200)
misc/tools/all/xonotic.subr

index 7214f4532190f0bd0ebaa6e012b3ea5a34c011a4..d976ff82a6f7ad5cbacd9e422bb26e58f53bf5a3 100644 (file)
@@ -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
                ;;