This commit is contained in:
JustArchi
2016-09-13 03:12:58 +02:00
parent 75e3ef9818
commit 18c6fd639a

9
run.sh
View File

@@ -6,7 +6,6 @@ BUILD="Release"
UNTIL_CLEAN_EXIT=0 UNTIL_CLEAN_EXIT=0
ASF_ARGS=("") ASF_ARGS=("")
MONO_ARGS=("")
PRINT_USAGE() { PRINT_USAGE() {
echo "Usage: $0 [--until-clean-exit] [--cryptkey=] [--path=] [--server] [debug/release]" echo "Usage: $0 [--until-clean-exit] [--cryptkey=] [--path=] [--server] [debug/release]"
@@ -25,10 +24,6 @@ for ARG in "$@"; do
esac esac
done done
if [[ "$BUILD" = "Debug" ]]; then
MONO_ARGS+=("--debug")
fi
cd "$(dirname "$(readlink -f "$0")")" cd "$(dirname "$(readlink -f "$0")")"
if [[ -f "mono_envsetup.sh" ]]; then if [[ -f "mono_envsetup.sh" ]]; then
@@ -45,12 +40,12 @@ if [[ ! -f "$BINARY" ]]; then
fi fi
if [[ "$UNTIL_CLEAN_EXIT" -eq 0 ]]; then if [[ "$UNTIL_CLEAN_EXIT" -eq 0 ]]; then
mono "${MONO_ARGS[@]}" "$BINARY" "${ASF_ARGS[@]}" mono "$BINARY" "${ASF_ARGS[@]}"
exit $? exit $?
fi fi
while [[ -f "$BINARY" ]]; do while [[ -f "$BINARY" ]]; do
if mono "${MONO_ARGS[@]}" "$BINARY" "${ASF_ARGS[@]}"; then if mono "$BINARY" "${ASF_ARGS[@]}"; then
break break
fi fi
sleep 1 sleep 1