From 928df711ba8cf06764b5252d555bf3589365a30a Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Wed, 4 Apr 2018 09:33:09 -0500 Subject: [PATCH] Add a usage statement. --- build_proton.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build_proton.sh b/build_proton.sh index 716169ae..8694980e 100755 --- a/build_proton.sh +++ b/build_proton.sh @@ -1,5 +1,18 @@ #!/bin/bash +usage() +{ + echo "$1: [component ... ] [--release] [--package]" + echo "Build the Proton Steam Tool" + echo "Component can be one or more of:" + echo " wine, wine32, wine64" + echo " vrclient, vrclient32, vrclient64" + echo " lsteamclient, lsteamclient32, lsteamclient64" + echo "or all, which is the default. The 'all' component also implies --package" + echo "--release causes symbols to be stripped of debug info." + echo "--package creates the tar ball in dist/." +} + set -e JOBS=-j5 @@ -201,6 +214,9 @@ for param in "$@"; do INSTALL_PROGRAM_FLAGS='-s' elif [ "$param" == "--package" ]; then PACKAGE=true + else + usage `basename $0` + exit 1 fi done