2014-11-04 16:10:57 -05:00
|
|
|
@echo off
|
|
|
|
|
setlocal
|
|
|
|
|
pushd %~dp0
|
|
|
|
|
|
2015-08-27 15:35:57 -04:00
|
|
|
rem Figure out if we should append the -prompt argument
|
|
|
|
|
set PROMPT_ARGUMENT=
|
|
|
|
|
for %%P in (%*) do if /I "%%P" == "--prompt" goto no_prompt_argument
|
|
|
|
|
for %%P in (%*) do if /I "%%P" == "--force" goto no_prompt_argument
|
|
|
|
|
set PROMPT_ARGUMENT=--prompt
|
|
|
|
|
:no_prompt_argument
|
|
|
|
|
|
2014-11-04 16:10:57 -05:00
|
|
|
rem Sync the dependencies...
|
2015-08-27 15:35:57 -04:00
|
|
|
.\Engine\Binaries\DotNET\GitDependencies.exe %PROMPT_ARGUMENT% %*
|
2014-11-04 16:10:57 -05:00
|
|
|
if ERRORLEVEL 1 goto error
|
|
|
|
|
|
2014-11-10 08:34:19 -05:00
|
|
|
rem Setup the git hooks...
|
2014-11-04 16:10:57 -05:00
|
|
|
if not exist .git\hooks goto no_git_hooks_directory
|
|
|
|
|
echo Registering git hooks...
|
|
|
|
|
echo #!/bin/sh >.git\hooks\post-checkout
|
2015-07-20 10:42:17 -04:00
|
|
|
echo Engine/Binaries/DotNET/GitDependencies.exe %* >>.git\hooks\post-checkout
|
2014-11-07 09:48:02 -05:00
|
|
|
echo #!/bin/sh >.git\hooks\post-merge
|
2015-07-20 10:42:17 -04:00
|
|
|
echo Engine/Binaries/DotNET/GitDependencies.exe %* >>.git\hooks\post-merge
|
2014-11-04 16:10:57 -05:00
|
|
|
:no_git_hooks_directory
|
|
|
|
|
|
2014-11-10 08:34:19 -05:00
|
|
|
rem Install prerequisites...
|
|
|
|
|
echo Installing prerequisites...
|
|
|
|
|
start /wait Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe /quiet
|
|
|
|
|
|
2014-11-04 16:10:57 -05:00
|
|
|
rem Register the engine installation...
|
|
|
|
|
if not exist .\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe goto :no_unreal_version_selector
|
2014-11-08 02:04:49 -05:00
|
|
|
.\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe /register
|
2014-11-04 16:10:57 -05:00
|
|
|
:no_unreal_version_selector
|
|
|
|
|
|
|
|
|
|
rem Done!
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
rem Error happened. Wait for a keypress before quitting.
|
|
|
|
|
:error
|
|
|
|
|
pause
|
2015-03-24 15:09:24 -04:00
|
|
|
|