configure.sh: Remove --force

This commit is contained in:
John Schoenick 2018-08-27 13:41:56 -07:00
parent 3ccfeffa32
commit 055183eaa5

View file

@ -74,11 +74,7 @@ function configure() {
local srcdir="$(dirname "$0")" local srcdir="$(dirname "$0")"
# Don't die after this point or we'll have rather unhelpfully deleted the Makefile # Don't die after this point or we'll have rather unhelpfully deleted the Makefile
if [[ -e ./Makefile ]]; then [[ ! -e "$MAKEFILE" ]] || rm "$MAKEFILE"
[[ -n $arg_force ]] || die "Makefile exists, use --force to reconfigure ($MAKEFILE)"
info "Makefile exists, --force given, removing"
cmd rm "$MAKEFILE"
fi
echo >> "$MAKEFILE" "# Generated by: $THIS_COMMAND" echo >> "$MAKEFILE" "# Generated by: $THIS_COMMAND"
echo >> "$MAKEFILE" "" echo >> "$MAKEFILE" ""
@ -97,7 +93,6 @@ function configure() {
# Parse arguments # Parse arguments
# #
arg_force=""
arg_steamrt32="" arg_steamrt32=""
arg_steamrt64="" arg_steamrt64=""
arg_no_steamrt="" arg_no_steamrt=""
@ -131,9 +126,7 @@ function parse_args() {
fi fi
# The args # The args
if [[ $arg = --force ]]; then if [[ $arg = --steam-runtime32 ]]; then
arg_force=1
elif [[ $arg = --steam-runtime32 ]]; then
val_used=1 val_used=1
arg_steamrt32="$val" arg_steamrt32="$val"
elif [[ $arg = --steam-runtime64 ]]; then elif [[ $arg = --steam-runtime64 ]]; then
@ -179,8 +172,6 @@ usage() {
"$1" " Generate a Makefile for building Proton. May be run from another directory to create" "$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" " out-of-tree build directories (e.g. mkdir mybuild && cd mybuild && ../configure.sh)"
"$1" "" "$1" ""
"$1" " --force Overwrite Makefile if it already exists"
"$1" ""
"$1" " Steam Runtime" "$1" " Steam Runtime"
"$1" " Proton builds that are to be installed & run under the steam client must be built with" "$1" " Proton builds that are to be installed & run under the steam client must be built with"
"$1" " the Steam Runtime SDK to ensure compatibility. See BUILDING.md for more information." "$1" " the Steam Runtime SDK to ensure compatibility. See BUILDING.md for more information."