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) --debug)
LH_DEBUG="enabled" _DEBUG="enabled"
shift shift
;; ;;

View File

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

View File

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

View File

@ -9,7 +9,7 @@
Exit () Exit ()
{ {
if [ "${LH_DEBUG}" = "enabled" ] if [ "${_DEBUG}" = "enabled" ]
then then
# Dump variables # Dump variables
set | grep -e ^LH 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 Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults Set_defaults
if [ "${LH_DEBUG}" = "enabled" ] if [ "${_DEBUG}" = "enabled" ]
then then
WGET_OPTIONS="${WGET_OPTIONS} --verbose" WGET_OPTIONS="${WGET_OPTIONS} --verbose"
elif [ "${LH_QUIET}" = "enabled" ] elif [ "${LH_QUIET}" = "enabled" ]

View File

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

View File

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