ACE3/make.bat
2016-07-11 16:30:51 +02:00

25 lines
764 B
Batchfile

@echo off
setlocal enabledelayedexpansion
if not exist "@ace" mkdir "@ace"
if not exist "@ace\addons" mkdir "@ace\addons"
if not exist "@ace\optionals" mkdir "@ace\optionals"
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (set armake=tools\armake_w64.exe) else (set armake=tools\armake_w32.exe)
for /d %%f in (addons\*) do (
set folder=%%f
set name=!folder:addons\=!
echo PBO @ace\addons\ace_!name!.pbo
!armake! build -w unquoted-string -w redefinition-wo-undef -f !folder! @ace\addons\ace_!name!.pbo
)
for /d %%f in (optionals\*) do (
set folder=%%f
set name=!folder:optionals\=!
echo PBO @ace\optionals\ace_!name!.pbo
!armake! build -w unquoted-string -w redefinition-wo-undef -f !folder! @ace\optionals\ace_!name!.pbo
)
pause