#929 - installdir parameter is not required now, it have a default value.
This commit is contained in:
parent
e57d84e60c
commit
9b7dd18045
1 changed files with 4 additions and 9 deletions
|
@ -22,7 +22,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: tomas $
|
# Author : $Author: tomas $
|
||||||
# Version : $Revision: 1.4 $
|
# Version : $Revision: 1.5 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/pear/bin/install.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/pear/bin/install.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -39,6 +39,7 @@ basedir=`cd $reldir; pwd;`
|
||||||
bindir=$basedir/bin
|
bindir=$basedir/bin
|
||||||
etcdir=$basedir/etc
|
etcdir=$basedir/etc
|
||||||
srcdir=$basedir/src
|
srcdir=$basedir/src
|
||||||
|
installdir=$basedir/../..
|
||||||
|
|
||||||
description="PEAR packages needed by LiveSupport"
|
description="PEAR packages needed by LiveSupport"
|
||||||
|
|
||||||
|
@ -81,7 +82,7 @@ printUsage()
|
||||||
echo "LiveSupport PEAR packages install script.";
|
echo "LiveSupport PEAR packages install script.";
|
||||||
echo " parameters:";
|
echo " parameters:";
|
||||||
echo "";
|
echo "";
|
||||||
echo " -d, --directory The LiveSupport installation directory, required.";
|
echo " -d, --directory The LiveSupport installation directory";
|
||||||
echo " -h, --help Print this message and exit.";
|
echo " -h, --help Print this message and exit.";
|
||||||
echo "";
|
echo "";
|
||||||
}
|
}
|
||||||
|
@ -92,7 +93,7 @@ printUsage()
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
CMD=${0##*/}
|
CMD=${0##*/}
|
||||||
|
|
||||||
opts=$(getopt -o d:h -l directory:,help -n $CMD -- "$@") || exit 1
|
opts=$(getopt -o dh -l directory,help -n $CMD -- "$@") || exit 1
|
||||||
eval set -- "$opts"
|
eval set -- "$opts"
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
@ -112,12 +113,6 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "x$installdir" == "x" ]; then
|
|
||||||
echo "Required parameter install directory not specified.";
|
|
||||||
printUsage;
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Customize the configuration file with the appropriate values
|
# Customize the configuration file with the appropriate values
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue