# put ourselves into Engine directory (two up from location of this script)
pushd "`dirname "$0"`/../.."
UATDirectory=Binaries/DotNET/
UATNoCompileArg=
if [ ! -f Build/BatchFiles/RunUAT.command ]; then
echo RunUAT ERROR: The batch file does not appear to be located in the /Engine/Build/BatchFiles directory. This script must be run from within that directory.
exit 1
fi
# see if we have the no compile arg
echo Checking for -NoCompile
args=“$@“
HAS_NO_COMPILE=`echo $args | grep -i nocompile`
if [ "$HAS_NO_COMPILE" == "$args" ]; then
UATNoCompileArg=-NoCompile
else
UATNoCompileArg=
fi
# see if the .csproj exists to be compiled
# @todo: Check for an override envvar: if not "%ForcePrecompiledUAT%"=="" goto NoVisualStudio2010Environment
if [ "$UATNoCompileArg" != "-NoCompile" ]; then
if [ ! -f Source/Programs/AutomationTool/AutomationTool_Mono.csproj ]; then
echo No project to compile, attempting to use precompiled AutomationTool
UATNoCompileArg=-NoCompile
else
echo Check if $UATDirectory contains AutomationTool.exe
if [ -f "$UATDirectory/AutomationTool.exe" ]; then