mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Only use terminal escapes (in $TB/$TN) when printing to a terminal.
This commit is contained in:
parent
eb351d9e33
commit
2d5316b4c1
3 changed files with 19 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 "#######################################################################"
|
||||
|
|
|
|||
Loading…
Reference in a new issue