configure: Rename --no-steam-runtime to --no-proton-sdk.

This commit is contained in:
Rémi Bernon 2021-04-19 15:33:46 +02:00
parent 9d5b7eb0cc
commit a8b3580679
No known key found for this signature in database
GPG key ID: 38D0E5827B54E5C9
2 changed files with 11 additions and 11 deletions

View file

@ -181,7 +181,7 @@ protonsdk_version value to use):
Or, if you are building without the Steam runtime, then instead use:
../proton/configure.sh --no-steam-runtime
../proton/configure.sh --no-proton-sdk
**Tip**: If you are building without the Steam runtime, you should now run
`make obj-wine64/Makefile obj-wine32/Makefile` and check the files

View file

@ -98,7 +98,7 @@ function configure() {
arg_steamrt="soldier"
arg_protonsdk_image=""
arg_no_steamrt=""
arg_no_protonsdk=""
arg_build_name=""
arg_docker_opts=""
arg_help=""
@ -146,8 +146,8 @@ function parse_args() {
elif [[ $arg = --steam-runtime ]]; then
val_used=1
arg_steamrt="$val"
elif [[ $arg = --no-steam-runtime ]]; then
arg_no_steamrt=1
elif [[ $arg = --no-proton-sdk ]]; then
arg_no_protonsdk=1
else
err "Unrecognized option $arg"
return 1
@ -182,7 +182,7 @@ function parse_args() {
}
usage() {
"$1" "Usage: $0 { --no-steam-runtime | --proton-sdk-image=<image> --steam-runtime=<name> }"
"$1" "Usage: $0 { --no-proton-sdk | --proton-sdk-image=<image> --steam-runtime=<name> }"
"$1" " Generate a Makefile for building Proton. May be run from another directory to create"
"$1" " out-of-tree build directories (e.g. mkdir mybuild && cd mybuild && ../configure.sh)"
"$1" ""
@ -203,7 +203,7 @@ usage() {
"$1" " create this image."
"$1" " --steam-runtime=soldier Name of the steam runtime release to build for (soldier, scout)."
"$1" ""
"$1" " --no-steam-runtime Do not automatically invoke any runtime SDK as part of the build."
"$1" " --no-proton-sdk Do not automatically invoke any runtime SDK as part of the build."
"$1" " Build steps may still be manually run in a runtime environment."
exit 1;
}
@ -213,10 +213,10 @@ parse_args "$@" || usage err
[[ -z $arg_help ]] || usage info
# Sanity check arguments
if [[ -n $arg_no_steamrt && -n $arg_protonsdk_image ]]; then
die "Cannot specify --proton-sdk-image as well as --no-steam-runtime"
elif [[ -z $arg_no_steamrt && -z $arg_protonsdk_image ]]; then
die "Must specify either --no-steam-runtime or --proton-sdk-image"
if [[ -n $arg_no_protonsdk && -n $arg_protonsdk_image ]]; then
die "Cannot specify --proton-sdk-image as well as --no-proton-sdk"
elif [[ -z $arg_no_protonsdk && -z $arg_protonsdk_image ]]; then
die "Must specify either --no-proton-sdk or --proton-sdk-image"
fi
configure "$arg_protonsdk_image" "$arg_steamrt"