Correct run.sh

This commit is contained in:
JustArchi 2017-06-26 05:48:48 +02:00
parent df7cede9a4
commit fb09581d18

7
run.sh
View file

@ -3,21 +3,18 @@ set -eu
PROJECT="ArchiSteamFarm" PROJECT="ArchiSteamFarm"
OUT="out" OUT="out"
BINARY="${OUT}/${PROJECT}.dll" BINARY="${PROJECT}/${OUT}/${PROJECT}.dll"
ASF_ARGS=("") ASF_ARGS=("")
BUILD="Release"
UNTIL_CLEAN_EXIT=0 UNTIL_CLEAN_EXIT=0
PRINT_USAGE() { PRINT_USAGE() {
echo "Usage: $0 [--until-clean-exit] [--cryptkey=] [--path=] [--server] [debug/release]" echo "Usage: $0 [--until-clean-exit] [--cryptkey=] [--path=] [--server]"
exit 1 exit 1
} }
for ARG in "$@"; do for ARG in "$@"; do
case "$ARG" in case "$ARG" in
release|Release) BUILD="Release" ;;
debug|Debug) BUILD="Debug" ;;
--cryptkey=*) ASF_ARGS+=("$ARG") ;; --cryptkey=*) ASF_ARGS+=("$ARG") ;;
--path=*) ASF_ARGS+=("$ARG") ;; --path=*) ASF_ARGS+=("$ARG") ;;
--server) ASF_ARGS+=("$ARG") ;; --server) ASF_ARGS+=("$ARG") ;;