From 8dbe0f1883a845220de319c4cb5adfb4bf9c4f62 Mon Sep 17 00:00:00 2001 From: Cameron Edwards Date: Mon, 26 Nov 2018 12:20:26 -0700 Subject: [PATCH] Created _Footer (markdown) --- _Footer.md | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 _Footer.md diff --git a/_Footer.md b/_Footer.md new file mode 100644 index 0000000..0132734 --- /dev/null +++ b/_Footer.md @@ -0,0 +1,103 @@ +#!/bin/bash + +# Copyright 1998-2018 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 + + + +if [ "$(uname)" = "Darwin" ]; then + + # Setup the git hooks + + if [ -d .git/hooks ]; then + + echo "Registering git hooks... (this will override existing ones!)" + + rm -f .git/hooks/post-checkout + + rm -f .git/hooks/post-merge + + ln -s ../../Engine/Build/BatchFiles/Mac/GitDependenciesHook.sh .git/hooks/post-checkout + + ln -s ../../Engine/Build/BatchFiles/Mac/GitDependenciesHook.sh .git/hooks/post-merge + + fi + + + + # Get the dependencies for the first time + + Engine/Build/BatchFiles/Mac/GitDependencies.sh --prompt $@ + +else + + # 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 Engine/Build/BatchFiles/Linux/GitDependencies.sh >>.git/hooks/post-checkout + + chmod +x .git/hooks/post-checkout + + + + echo \#!/bin/sh >.git/hooks/post-merge + + echo Engine/Build/BatchFiles/Linux/GitDependencies.sh >>.git/hooks/post-merge + + chmod +x .git/hooks/post-merge + + fi + + + + # Get the dependencies for the first time + + Engine/Build/BatchFiles/Linux/GitDependencies.sh --prompt $@ + + + + echo Register the engine installation... + + if [ -f Engine/Binaries/Linux/UnrealVersionSelector-Linux-Shipping ]; then + + pushd Engine/Binaries/Linux > /dev/null + + ./UnrealVersionSelector-Linux-Shipping -register > /dev/null & + + popd > /dev/null + + fi + + + + pushd Engine/Build/BatchFiles/Linux > /dev/null + + ./Setup.sh "$@" + + popd > /dev/null + +fi \ No newline at end of file