Skip to content

Commit

Permalink
restore pulling UE4 code from git while setting up from sh script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssashir06 committed Jan 25, 2018
1 parent e602671 commit 13efeaf
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions install_run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,28 @@ set -x

#confirm unreal install directory
UnrealDir=$1
if [[ -z "$UnrealDir" ]]; then
# UnrealDir variable must be set like '/Users/Shared/Epic\ Games/UE_4.16'
echo "UnrealDir is not set."
exit 1
if [[ !(-z "UnrealDir") ]]; then
UnrealDir="$SCRIPT_DIR/UnrealEngine"
fi

read -p "Unreal will be installed in $UnrealDir. To change it invoke script with path argument. Continue? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
popd >/dev/null
exit 0
fi

#install unreal
if [[ !(-d "$UnrealDir") ]]; then
git clone -b 4.17 https://github.com/EpicGames/UnrealEngine.git "$UnrealDir"
pushd "$UnrealDir" >/dev/null

./Setup.sh
./GenerateProjectFiles.sh
make

popd >/dev/null
fi

#install airsim
Expand Down

0 comments on commit 13efeaf

Please sign in to comment.