Files
UnrealEngineUWP/Engine/Build/BatchFiles/Linux/SetupEnvironment.sh
Marc Audy a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00

30 lines
782 B
Bash
Executable File

#!/bin/sh
# This script is called by UE tools to source environment variables from the users .unrealrc script(s)
# It expects to be called from the engine directory and the order is ~/.unrealrc then <workspace>/.unrealrc
# To setup the environment and mono, use SetupEnvironment.sh -mono Engine/Build/BatchFiles/Mac
# (It's not clear why we can't just determine that path outselves, but for legacy reasons we'll keep it
# as a param)
if [ -f ~/.unrealrc ]; then
source ~/.unrealrc
fi
if [ -f .unrealrc ]; then
source .unrealrc
fi
while test $# -gt 0
do
case "$1" in
-mono)
# echo "setting up mono"
source $2/SetupMono.sh "$2"
shift
;;
-*) echo "bad argument $1"
;;
esac
shift
done