Files
UnrealEngineUWP/Engine/Build/BatchFiles/Build.bat
Wes Hunt afd7e1f195 Build.bat now properly sets the ERRORLEVEL upon exiting.
#codereview:ben.marsh

[CL 2624853 by Wes Hunt in Main branch]
2015-07-17 16:35:40 -04:00

22 lines
677 B
Batchfile

@echo off
setlocal enabledelayedexpansion
REM The %~dp0 specifier resolves to the path to the directory where this .bat is located in.
REM We use this so that regardless of where the .bat file was executed from, we can change to
REM directory relative to where we know the .bat is stored.
pushd "%~dp0\..\..\Source"
REM %1 is the game name
REM %2 is the platform name
REM %3 is the configuration name
IF EXIST ..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe (
..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe %* -DEPLOY
popd
EXIT /B !RET!
) ELSE (
ECHO UnrealBuildTool.exe not found in ..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe
popd
EXIT /B 999
)