Build script

This commit is contained in:
Björn Dahlgren 2017-07-24 21:59:19 +02:00
parent 8af1b3457f
commit a8d49c2c57
2 changed files with 26 additions and 0 deletions

3
.gitignore vendored
View File

@ -45,3 +45,6 @@ $RECYCLE.BIN/
Network Trash Folder
Temporary Items
.apdisk
# Build directory
build/

23
build.bat Normal file
View File

@ -0,0 +1,23 @@
@echo off
rem check that makepbo exists before continuing
where /q makepbo
if ERRORLEVEL 1 (
echo makepbo is missing. Ensure it is installed. It can be downloaded from:
echo https://armaservices.maverick-applications.com/Products/MikerosDosTools/FileBrowserFree
timeout 30
exit /b
)
rem Remove and recreate build folder
if exist build rd /s /q build >NUL
if not exist build mkdir build >NUL
rem Create each mission with the framework files
for /D %%s in (Missionbasefiles\*) do (
@echo %%~nxs
xcopy %%s build\%%~nxs /s /e /i /q >NUL
xcopy Missionframework\* build\%%~nxs /s /e /q >NUL
makepbo -np build\%%~nxs build\%%~nxs.pbo >NUL
rd /s /q build\%%~nxs >NUL
)