mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
appenv: add help to install.sh
This commit is contained in:
1 parent
d8c27f1eec
commit
3e40371dc6
1 file changed
+12
-1
Vendored
+12
-1
@@ -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 ;;
|
||||
|
||||
Reference in new issue
Block a user