add shortcuts for base options
This commit is contained in:
parent
dd0bf0a09e
commit
6c280e1e1b
61
builder
61
builder
@ -65,16 +65,26 @@ Usage: $0 OPTION
|
|||||||
Build, pack, test and upload your kf2 packages to the Steam Workshop.
|
Build, pack, test and upload your kf2 packages to the Steam Workshop.
|
||||||
|
|
||||||
Available options:
|
Available options:
|
||||||
-ib, --init-build generate $(basename "$MutBuildConfig") with build parameters
|
-ib, --init-build generate $(basename "$MutBuildConfig") with build parameters
|
||||||
-it, --init-test generate $(basename "$MutTestConfig") with test parameters
|
-it, --init-test generate $(basename "$MutTestConfig") with test parameters
|
||||||
-i, --init the same as "./$ScriptName --init-build; ./$ScriptName --init-test"
|
-i, --init the same as "./$ScriptName --init-build; ./$ScriptName --init-test"
|
||||||
-c, --compile build package(s)
|
-c, --compile build package(s)
|
||||||
-b, --brew compress *.upk and place inside *.u
|
-b, --brew compress *.upk and place inside *.u
|
||||||
-bm, --brew-manual the same (almost) as above, but with patched kfeditor by @notpeelz
|
-bm, --brew-manual the same (almost) as above, but with patched kfeditor by @notpeelz
|
||||||
-u, --upload upload package(s) to the Steam Workshop
|
-u, --upload upload package(s) to the Steam Workshop
|
||||||
-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,15 +458,26 @@ 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
|
||||||
-h|--help ) show_help ;;
|
# Options
|
||||||
-v|--version ) show_version ;;
|
-h|--help ) show_help ;;
|
||||||
-ib|--init-build ) init_build ;;
|
-v|--version ) show_version ;;
|
||||||
-it|--init-test ) init_test ;;
|
-ib|--init-build ) init_build ;;
|
||||||
-i|--init ) init_build; init_test ;;
|
-it|--init-test ) init_test ;;
|
||||||
-c|--compile ) compile ;;
|
-i|--init ) init_build; init_test ;;
|
||||||
-b|--brew ) brew ;;
|
-c|--compile ) compile ;;
|
||||||
-bm|--brew-manual ) brew_manual ;;
|
-b|--brew ) brew ;;
|
||||||
-u|--upload ) upload ;;
|
-bm|--brew-manual ) brew_manual ;;
|
||||||
-t|--test ) run_test ;;
|
-u|--upload ) upload ;;
|
||||||
|
-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
|
||||||
|
Loading…
Reference in New Issue
Block a user