You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
33 lines
909 B
Bash
Executable File
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 "$@"
|