Files
UnrealEngineUWP/Engine/Build/BatchFiles/Linux/GitDependencies.sh
Chris Gagnon 930e33cb48 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.23 From CL 6837861
#rb none

[CL 6838042 by Chris Gagnon in Main branch]
2019-06-04 15:42:48 -04:00

35 lines
869 B
Bash
Executable File

#!/bin/bash
# Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
# Certain versions of mono can crash while running GitDependencies
# This script checks if that happened and simply re-runs the tool.
ARGS=$@
SCRIPT_PATH=$0
if [ -L "$SCRIPT_PATH" ]; then
SCRIPT_PATH=$(dirname "$SCRIPT_PATH")/$(readlink "$SCRIPT_PATH")
fi
cd "$(dirname "$SCRIPT_PATH")" && SCRIPT_PATH="`pwd`/$(basename "$SCRIPT_PATH")"
BASE_PATH="`dirname "$SCRIPT_PATH"`"
# cd to Engine root
cd ../../../..
RESULT=0
source "$BASE_PATH/SetupMono.sh" "$BASE_PATH"
while : ; do
mono Engine/Binaries/DotNET/GitDependencies.exe $ARGS
RESULT=$?
echo "Result: $RESULT"
# quit if not crashed
[[ $RESULT -lt 129 ]] && break
echo "mono GitDependencies.exe $ARGS crashed with return code $RESULT" >> GitDependencies.crash.log
done
exit $RESULT