DEADSOFTWARE

Game: Get rid of "rulez", "kastet" and "pulemet" in resource names
[DF-Res.git] / make.cmd
index b97b12c0bd6e57eef4eaff025ef8745f2c41e222..056b09659ea533e5c50b777a25943722303d04d8 100755 (executable)
--- a/make.cmd
+++ b/make.cmd
@@ -1,10 +1,29 @@
 @echo off
 cd /d %~dp0
-call pack_dnd Game.lst
-call pack_dnd Editor.lst
-call pack_dnd Standart.lst
-call pack_dnd ShrShade.lst
-call pack_dnd Doomer.lst
-call pack_dnd Doom2D.lst
-echo [*] Build All done.
-echo.
+set PATH=%PATH%;%CD%
+call :treeProcess
+goto :done
+
+:treeProcess
+for /D %%d in (*) do (
+    cd %%d
+    call :treeProcess
+    cd ..
+)
+for %%i in (*.lst) do (
+  if exist %%i (
+    echo [*] Building %%~ni.wad ...
+    echo.
+    dfwad.exe %%i %%~ni.wad -i
+    echo.
+  )
+  IF ERRORLEVEL 1 (
+    exit /b
+  )
+)
+exit /b
+:done
+IF NOT ERRORLEVEL 1 (
+  echo [*] Build All done.
+  echo.
+)