diff options
author | Dan Armak <danarmak@gentoo.org> | 2002-03-27 18:32:33 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2002-03-27 18:32:33 +0000 |
commit | c5d1555942969fcc587044defa15ab6d9353e82e (patch) | |
tree | 2c95a08b576520de3754861bac73a5dc63562947 /eclass/debug.eclass | |
parent | Update intltool to latest release (diff) | |
download | historical-c5d1555942969fcc587044defa15ab6d9353e82e.tar.gz historical-c5d1555942969fcc587044defa15ab6d9353e82e.tar.bz2 historical-c5d1555942969fcc587044defa15ab6d9353e82e.zip |
*** empty log message ***
Diffstat (limited to 'eclass/debug.eclass')
-rw-r--r-- | eclass/debug.eclass | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/eclass/debug.eclass b/eclass/debug.eclass deleted file mode 100644 index 026f98167fda..000000000000 --- a/eclass/debug.eclass +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Dan Armak <danarmak@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.10 2002/03/03 05:17:20 danarmak Exp $ -# This provides functions for verbose output for debugging - -# redirect output, unset to disable. use e.g. /dev/stdout to write into a file/device. -# use special setting "on" to echo the output - unlike above, doesn't violate sandbox. -# the test here is to enable people to export DEBUG_OUTPUT before running ebuild/emerge -# so that they won't have to edit debug.eclass anymore -#[ -n "$ECLASS_DEBUG_OUTPUT" ] || ECLASS_DEBUG_OUTPUT="on" - -# used internally for output -# redirects output wherever's needed -# in the future might use e* from /etc/init.d/functions.sh if i feel like it -debug-print() { - - while [ "$1" ]; do - - # extra user-configurable targets - if [ "$ECLASS_DEBUG_OUTPUT" == "on" ]; then - echo "debug: $1" - elif [ -n "$ECLASS_DEBUG_OUTPUT" ]; then - echo "debug: $1" >> $ECLASS_DEBUG_OUTPUT - fi - - # default target - [ -d "$BUILD_PREFIX/$P/temp" ] && echo $1 >> ${T}/eclass-debug.log - - shift - done - -} - -# std message functions - -debug-print-function() { - - str="$1: entering function" - shift - debug-print "$str, parameters: $*" - -} - -debug-print-section() { - - debug-print "now in section $*" - -} - |