2014-11-04 16:37:36 -05:00
#!/bin/bash
## Unreal Engine 4 XBuild setup script
2019-12-27 07:44:07 -05:00
## Copyright Epic Games, Inc. All Rights Reserved.
2014-11-04 16:37:36 -05:00
## This script is expecting to exist in the UE4/Engine/Build/BatchFiles directory. It will not work correctly
## if you copy it to a different location and run it.
echo
echo Running XBuild...
echo
2020-12-02 06:57:13 -04:00
source "`dirname " $0 "`/SetupEnvironment.sh" -dotnet "`dirname " $0 "`"
2014-11-04 16:37:36 -05:00
# put ourselves into Engine directory (two up from location of this script)
pushd "`dirname " $0 "`/../../.."
if [ ! -f Build/BatchFiles/Linux/RunXBuild.sh ] ; then
echo RunXBuild 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
2020-12-02 06:57:13 -04:00
dotnet msbuild /verbosity:quiet /nologo " $@ " | grep -wi error
2014-11-04 16:37:36 -05:00
if [ $? -ne 1 ] ; then
exit 1
else
exit 0
fi