appenv: add help to install.sh

This commit is contained in:
Javi Fontan committed 2012-09-12 15:03:05 +02:00
1 parent d8c27f1eec
commit 3e40371dc6
1 file changed
+12 -1
+12 -1
View File
@@ -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 ;;