Skip to content

Commit

Permalink
add -h support to scripts/install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
RayPlante committed Nov 5, 2024
1 parent e7bf8d9 commit 59d6f83
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/_install-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,29 @@ true ${SOURCE_DIR:=$base}
true ${INSTALL_DIR:=/usr/local}
##########

function help {
echo ${prog} -- install software from this repository
cat <<EOF
This script installs the authbroker software as a package into a given
or system location. By default, this location is /usr/local/authbroker;
below this directory, directories like "bin" and "lib/python" will be
created and loaded up.
Usage: $prog [OPTION ...]
Options:
--install-dir DIR Install the softwared below an arbitrary location
(other than the default, /usr/local/authbroker).
--prefix DIR An alias for --intall-dir
--source-dir DIR The directory containing the source code, overriding
the default being the directory containing the
scripts subdirectory where this script resides.
--dir DIR An alieas for --source-dir
EOF
}

# handle command line options
while [ "$1" != "" ]; do
case "$1" in
Expand All @@ -29,6 +52,10 @@ while [ "$1" != "" ]; do
shift
SOURCE_DIR=$1
;;
-h|--help)
help
exit 0
;;
-*)
echo "$prog: unsupported option:" $1
false
Expand Down

0 comments on commit 59d6f83

Please sign in to comment.