Generalizing internal LH_DEBUG variable.

This commit is contained in:
Daniel Baumann 2008-11-01 14:57:17 +01:00
parent 137f573c85
commit 3ff1c8050b
7 changed files with 10 additions and 15 deletions

View File

@ -33,7 +33,7 @@ Arguments ()
;;
--debug)
LH_DEBUG="enabled"
_DEBUG="enabled"
shift
;;

View File

@ -221,7 +221,7 @@ Set_defaults ()
# Setting live helper options
LH_BREAKPOINTS="${LH_BREAKPOINTS:-disabled}"
LH_DEBUG="${LH_DEBUG:-disabled}"
_DEBUG="${_DEBUG:-disabled}"
_FORCE="${_FORCE:-disabled}"
LH_QUIET="${LH_QUIET:-disabled}"
LH_VERBOSE="${LH_VERBOSE:-disabled}"

View File

@ -25,7 +25,7 @@ Echo_debug ()
STRING="${1}"
shift
if [ "${LH_DEBUG}" = "enabled" ]
if [ "${_DEBUG}" = "enabled" ]
then
if [ "${_L10N}" = "false" ]
then

View File

@ -9,7 +9,7 @@
Exit ()
{
if [ "${LH_DEBUG}" = "enabled" ]
if [ "${_DEBUG}" = "enabled" ]
then
# Dump variables
set | grep -e ^LH

View File

@ -28,7 +28,7 @@ Arguments "${@}"
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
if [ "${LH_DEBUG}" = "enabled" ]
if [ "${_DEBUG}" = "enabled" ]
then
WGET_OPTIONS="${WGET_OPTIONS} --verbose"
elif [ "${LH_QUIET}" = "enabled" ]

View File

@ -104,7 +104,7 @@ else
esac
fi
if [ "${LH_DEBUG}" = "enabled" ]
if [ "${_DEBUG}" = "enabled" ]
then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --debug"
fi

View File

@ -322,11 +322,6 @@ Local_arguments ()
shift
;;
--debug)
LH_DEBUG="enabled"
shift
;;
--quiet)
LH_QUIET="enabled"
shift
@ -668,7 +663,7 @@ Local_arguments ()
;;
--debug)
LH_DEBUG="enabled"
_DEBUG="enabled"
shift
;;
@ -853,9 +848,9 @@ LH_TEMPLATES="${LH_TEMPLATES}"
# (Default: ${LH_BREAKPOINTS})
#LH_BREAKPOINTS="${LH_BREAKPOINTS}"
# \$LH_DEBUG: enable debug
# (Default: ${LH_DEBUG})
#LH_DEBUG="${LH_DEBUG}"
# \$_DEBUG: enable debug
# (Default: ${_DEBUG})
#_DEBUG="${_DEBUG}"
# \$_FORCE: enable force
# (Default: ${_FORCE})