1
0

add shortcuts for base options

This commit is contained in:
GenZmeY 2022-01-15 06:06:18 +03:00
parent dd0bf0a09e
commit 6c280e1e1b

21
builder
View File

@ -75,6 +75,16 @@ Available options:
-t, --test run local single player test with $(basename "$MutTestConfig") parameters -t, --test run local single player test with $(basename "$MutTestConfig") parameters
-v, --version show version -v, --version show version
-h, --help show this help -h, --help show this help
Shortcuts for multiple options:
-cb compile, brew
-cu compile, upload
-cbm compile, brew_manual
-cbu compile, brew, upload
-cbmu compile, brew_manual, upload
-ct compile, run_test
-cbt compile, brew, run_test
-cbmt compile, brew_manual, run_test
EOF EOF
} }
@ -448,6 +458,7 @@ export PATH="$PATH:$ThirdPartyBin"
if [[ $# -eq 0 ]]; then show_help; exit 0; fi if [[ $# -eq 0 ]]; then show_help; exit 0; fi
case $1 in case $1 in
# Options
-h|--help ) show_help ;; -h|--help ) show_help ;;
-v|--version ) show_version ;; -v|--version ) show_version ;;
-ib|--init-build ) init_build ;; -ib|--init-build ) init_build ;;
@ -458,5 +469,15 @@ case $1 in
-bm|--brew-manual ) brew_manual ;; -bm|--brew-manual ) brew_manual ;;
-u|--upload ) upload ;; -u|--upload ) upload ;;
-t|--test ) run_test ;; -t|--test ) run_test ;;
# Shortcuts
-cb ) compile; brew ;;
-cu ) compile; upload ;;
-cbm ) compile; brew_manual ;;
-cbu ) compile; brew; upload ;;
-cbmu ) compile; brew_manual; upload ;;
-ct ) compile; run_test ;;
-cbt ) compile; brew; run_test ;;
-cbmt ) compile; brew_manual; run_test ;;
# Other
* ) echo "Command not recognized: $1"; exit 1 ;; * ) echo "Command not recognized: $1"; exit 1 ;;
esac esac