Files
UnrealEngineUWP/Setup.sh
UnrealBot ae0caf3f88 Snapshot for changelist 2353950.
[CL 2353950 in Main branch]
2014-11-08 02:04:49 -05:00

33 lines
909 B
Bash
Executable File

#!/bin/sh
# Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
set -e
cd "`dirname "$0"`"
if [ ! -f Engine/Binaries/DotNET/GitDependencies.exe ]; then
echo "GitSetup ERROR: This script does not appear to be located \
in the root UE4 directory and must be run from there."
exit 1
fi
# Setup the git hooks
if [ -d .git/hooks ]; then
echo "Registering git hooks... (this will override existing ones!)"
echo \#!/bin/sh >.git/hooks/post-checkout
echo mono Engine/Binaries/DotNET/GitDependencies.exe >>.git/hooks/post-checkout
chmod +x .git/hooks/post-checkout
echo \#!/bin/sh >.git/hooks/post-merge
echo mono Engine/Binaries/DotNET/GitDependencies.exe >>.git/hooks/post-merge
chmod +x .git/hooks/post-merge
fi
#if [ "$(uname)" = "Darwin" ]; then
# cd Engine/Build/BatchFiles/Mac
# source SetupMono.sh "`pwd`"
# cd ../../../..
#fi
mono Engine/Binaries/DotNET/GitDependencies.exe "$@"