mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-25 12:28:50 +00:00
Removed unused command, added check for PHP installation
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cls
|
cls
|
||||||
|
|
||||||
|
WHERE php >nul 2>nul
|
||||||
|
IF %ERRORLEVEL% NEQ 0 goto ERROR-NO-PHP
|
||||||
|
|
||||||
@REM -------------------------------------------
|
@REM -------------------------------------------
|
||||||
@REM CREATE SCENARIOS
|
@REM CREATE SCENARIOS
|
||||||
@REM -------------------------------------------
|
@REM -------------------------------------------
|
||||||
@@ -13,14 +16,12 @@ echo.
|
|||||||
set /p buildConfig=Your choice:
|
set /p buildConfig=Your choice:
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
IF "%buildConfig%" == "d" goto BUILD-DEBUG-ALL
|
|
||||||
IF "%buildConfig%" == "D" goto BUILD-DEBUG-ALL
|
|
||||||
IF "%buildConfig%" == "p" goto BUILD-DEBUG-PERSIAN
|
IF "%buildConfig%" == "p" goto BUILD-DEBUG-PERSIAN
|
||||||
IF "%buildConfig%" == "P" goto BUILD-DEBUG-PERSIAN
|
IF "%buildConfig%" == "P" goto BUILD-DEBUG-PERSIAN
|
||||||
|
IF "%buildConfig%" == "d" goto BUILD-DEBUG-ALL
|
||||||
|
IF "%buildConfig%" == "D" goto BUILD-DEBUG-ALL
|
||||||
IF "%buildConfig%" == "r" goto BUILD-RELEASE
|
IF "%buildConfig%" == "r" goto BUILD-RELEASE
|
||||||
IF "%buildConfig%" == "R" goto BUILD-RELEASE
|
IF "%buildConfig%" == "R" goto BUILD-RELEASE
|
||||||
IF "%buildConfig%" == "s" goto START-DEBUG
|
|
||||||
IF "%buildConfig%" == "S" goto START-DEBUG
|
|
||||||
goto CANCEL-END
|
goto CANCEL-END
|
||||||
|
|
||||||
:BUILD-DEBUG-ALL
|
:BUILD-DEBUG-ALL
|
||||||
@@ -38,10 +39,16 @@ if exist *.miz del *.miz
|
|||||||
c:\php\php Make.php release
|
c:\php\php Make.php release
|
||||||
goto COPY-TO-DCS
|
goto COPY-TO-DCS
|
||||||
|
|
||||||
:COPY-TO-DCS
|
:BUILD-MANUAL
|
||||||
|
WHERE pandoc >nul 2>nul
|
||||||
|
IF %ERRORLEVEL% NEQ 0 goto ERROR-NO-PANDOC
|
||||||
|
pandoc README.md -o README.pdf
|
||||||
|
goto END
|
||||||
|
|
||||||
@REM -------------------------------------------
|
@REM -------------------------------------------
|
||||||
@REM COPY OUTPUT MIZ FILES TO DCS'S MISSIONS DIRECTORY
|
@REM COPY OUTPUT MIZ FILES TO DCS'S MISSIONS DIRECTORY
|
||||||
@REM -------------------------------------------
|
@REM -------------------------------------------
|
||||||
|
:COPY-TO-DCS
|
||||||
if not exist "%userprofile%\Saved Games\DCS\Missions\" goto END
|
if not exist "%userprofile%\Saved Games\DCS\Missions\" goto END
|
||||||
if not exist *.miz goto END
|
if not exist *.miz goto END
|
||||||
echo Copying output MIZ files to %userprofile%\Saved Games\DCS\Missions...
|
echo Copying output MIZ files to %userprofile%\Saved Games\DCS\Missions...
|
||||||
@@ -54,5 +61,10 @@ echo.
|
|||||||
echo Build cancelled.
|
echo Build cancelled.
|
||||||
goto END
|
goto END
|
||||||
|
|
||||||
|
:ERROR-NO-PHP
|
||||||
|
echo.
|
||||||
|
echo CRITICAL ERROR: PHP not found. Please install PHP and add it to the PATH.
|
||||||
|
goto END
|
||||||
|
|
||||||
:END
|
:END
|
||||||
echo.
|
echo.
|
||||||
|
|||||||
Reference in New Issue
Block a user