2014-11-04 16:10:57 -05:00
|
|
|
@echo off
|
|
|
|
|
setlocal
|
2019-06-03 09:03:05 -04:00
|
|
|
pushd "%~dp0"
|
2014-11-04 16:10:57 -05:00
|
|
|
|
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...
|
2022-05-09 11:12:21 -04:00
|
|
|
.\Engine\Binaries\DotNET\GitDependencies\win-x64\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
|
2022-05-09 11:12:21 -04:00
|
|
|
echo Engine/Binaries/DotNET/GitDependencies/win-x64/GitDependencies.exe %* >>.git\hooks\post-checkout
|
2014-11-07 09:48:02 -05:00
|
|
|
echo #!/bin/sh >.git\hooks\post-merge
|
2022-05-09 11:12:21 -04:00
|
|
|
echo Engine/Binaries/DotNET/GitDependencies/win-x64/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...
|
2021-05-10 23:14:20 -04:00
|
|
|
start /wait Engine\Extras\Redist\en-us\UEPrereqSetup_x64.exe /quiet
|
2014-11-10 08:34:19 -05:00
|
|
|
|
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!
|
2021-01-21 16:22:06 -04:00
|
|
|
goto :end
|
2014-11-04 16:10:57 -05:00
|
|
|
|
|
|
|
|
rem Error happened. Wait for a keypress before quitting.
|
|
|
|
|
:error
|
|
|
|
|
pause
|
2015-03-24 15:09:24 -04:00
|
|
|
|
2021-01-21 16:22:06 -04:00
|
|
|
:end
|
|
|
|
|
popd
|