]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/all/xonotic.subr
initial version of ./all compile-map feature
[xonotic/xonotic.git] / misc / tools / all / xonotic.subr
index 0379abdc9b0a8473f198514ffbe069ad9e95584c..9378e935172c9425d282bfc6a0937aec1bddfcf8 100644 (file)
@@ -3,6 +3,15 @@ case "$cmd" in
        update-maps)
                misc/tools/xonotic-map-compiler-autobuild download
                ;;
+       compile-map)
+               if [ ! -f "netradiant/install/q3map2.x86" ] ; then
+                       msg "q3map2 needed! Building netradiant..."
+                       cd netradiant
+                       make
+                       cd ../
+               fi
+               misc/tools/xonotic-map-compiler_from_all ./data/xonotic-maps.pk3dir/maps/$1
+               ;;
        compile)
                cleand0=false
                cleandp=false