Only use terminal escapes (in $TB/$TN) when printing to a terminal.

This commit is contained in:
Hallvard Furuseth 2007-05-18 18:42:59 +00:00
parent eb351d9e33
commit 2d5316b4c1
3 changed files with 19 additions and 6 deletions

View file

@ -50,8 +50,11 @@ fi
SHTOOL="$ac_cv_shtool"
dnl AC_SUBST(SHTOOL)dnl
TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
TB="" TN=""
if test -t 1; then
TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
fi
OPENLDAP_CVS=""
if test -d $ac_aux_dir/CVS; then

View file

@ -14,8 +14,13 @@
## <http://www.OpenLDAP.org/license.html>.
. $SRCDIR/scripts/defines.sh
TB=`$SHTOOL echo -e "%B"`
TN=`$SHTOOL echo -e "%b"`
TB="" TN=""
if test -t 1 ; then
TB=`$SHTOOL echo -e "%B" 2>/dev/null`
TN=`$SHTOOL echo -e "%b" 2>/dev/null`
fi
SLEEPTIME=10
echo ">>>>> Executing all LDAP tests for $BACKEND"

View file

@ -14,8 +14,13 @@
## <http://www.OpenLDAP.org/license.html>.
SHTOOL="$SRCDIR/../build/shtool"
TB=`$SHTOOL echo -e "%B"`
TN=`$SHTOOL echo -e "%b"`
TB="" TN=""
if test -t 1 ; then
TB=`$SHTOOL echo -e "%B" 2>/dev/null`
TN=`$SHTOOL echo -e "%b" 2>/dev/null`
fi
SLEEPTIME=10
echo "#######################################################################"