зеркало из https://github.com/microsoft/AirSim.git
35 строки
816 B
Bash
Executable File
35 строки
816 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# get path of current script: https://stackoverflow.com/a/39340259/207661
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
pushd "$SCRIPT_DIR" >/dev/null
|
|
|
|
set -e
|
|
set -x
|
|
|
|
#confirm unreal install directory
|
|
UnrealDir=$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 1 # Exit code 1 so that install_run_all.sh will not proceed further
|
|
fi
|
|
|
|
#install unreal
|
|
if [[ !(-d "$UnrealDir") ]]; then
|
|
git clone -b 4.25 git@github.com:EpicGames/UnrealEngine.git "$UnrealDir"
|
|
pushd "$UnrealDir" >/dev/null
|
|
|
|
./Setup.sh
|
|
./GenerateProjectFiles.sh
|
|
make
|
|
|
|
popd >/dev/null
|
|
fi
|