From a8d49c2c57f74e60479cd4c8e95b3752e5e74ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Mon, 24 Jul 2017 21:59:19 +0200 Subject: [PATCH] Build script --- .gitignore | 3 +++ build.bat | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 build.bat diff --git a/.gitignore b/.gitignore index cd2946ad..338b05b7 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ $RECYCLE.BIN/ Network Trash Folder Temporary Items .apdisk + +# Build directory +build/ diff --git a/build.bat b/build.bat new file mode 100644 index 00000000..0a0fa29d --- /dev/null +++ b/build.bat @@ -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 +)