From 3e40371dc67b7a5a788edcac049922d43fd4bc2c Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 12 Sep 2012 15:03:05 +0200 Subject: [PATCH] appenv: add help to install.sh --- env/install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/env/install.sh b/env/install.sh index dfbc9a6f86..4f523799be 100755 --- a/env/install.sh +++ b/env/install.sh @@ -15,7 +15,17 @@ # limitations under the License. # #--------------------------------------------------------------------------- # -TEMP_OPT=`getopt -o ld: -n 'install.sh' -- "$@"` +usage() { + echo + echo "Usage: install.sh [-d ONE_LOCATION] [-l] [-h]" + echo + echo "-d: target installation directory, if not defined it'd be root. Must be" + echo " an absolute path." + echo "-l: creates symlinks instead of copying files, useful for development" + echo "-h: prints this help" +} + +TEMP_OPT=`getopt -o hld: -n 'install.sh' -- "$@"` if [ $? != 0 ] ; then usage @@ -29,6 +39,7 @@ SRC_DIR=$PWD while true ; do case "$1" in + -h) usage; exit 0;; -d) ROOT="$2" ; shift 2 ;; -l) LINK="yes" ; shift ;; --) shift ; break ;;