libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Libtool branch, master, updated. v2.4.2-327-g3f1fc2e


From: Gary V. Vaughan
Subject: [SCM] GNU Libtool branch, master, updated. v2.4.2-327-g3f1fc2e
Date: Thu, 25 Oct 2012 08:33:53 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  3f1fc2ea3abb39cffb19f5f14abddb324aa184ac (commit)
       via  eda239d9899e81f616cc34c55c84fd2dddc4f2eb (commit)
      from  d5c146580c21ee603458d92983d27e7af1260667 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3f1fc2ea3abb39cffb19f5f14abddb324aa184ac
Author: Gary V. Vaughan <address@hidden>
Date:   Thu Oct 25 01:29:28 2012 -0500

    bootstrap: honor COLORTERM and USE_ANSI_COLORS.
    
    Plenty of machines use a terminfo database that doesn't have
    entries for color escape sequences, even though the terminal
    itself most likely supports ANSI color escapes.
    * gl/build-aux/funclib.sh (require_term_colors): If COLORTERM
    or USE_ANSI_COLORS are set, then ignore what terminfo says,
    and use standard ANSI color escape sequences.
    * bootstrap: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <address@hidden>

commit eda239d9899e81f616cc34c55c84fd2dddc4f2eb
Author: Gary V. Vaughan <address@hidden>
Date:   Thu Oct 25 01:15:56 2012 -0500

    bootstrap: make error messages prettier.
    
    * gl/build-aux/funclib.sh (func_error): Indent 'error' prefix by
    two additional spaces to line up nicely with 'warning' and
    'running'.
    * bootstrap: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 bootstrap               |   40 +++++++++++++++++++++++++++-------------
 gl/build-aux/funclib.sh |   40 +++++++++++++++++++++++++++-------------
 2 files changed, 54 insertions(+), 26 deletions(-)

diff --git a/bootstrap b/bootstrap
index f9d8b9d..b897f20 100755
--- a/bootstrap
+++ b/bootstrap
@@ -321,18 +321,32 @@ func_require_term_colors ()
 {
     $debug_cmd
 
-    test -t 1 && {
-      test -n "`tput sgr0 2>/dev/null`" && {
-        tc_reset=`tput sgr0`
-        test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
-          tc_standout=$tc_bold
-      test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
-        test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
-        test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
-        test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
-        test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
-      }
-    }
+    test -t 1 && {                                                       
+      # COLORTERM and USE_ANSI_COLORS environment variables take         
+      # precedence, because most terminfo databases neglect to describe  
+      # whether color sequences are supported.                           
+      test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}             
+                                                                       
+      if test 1 = "$USE_ANSI_COLORS"; then                             
+        # Standard ANSI escape sequences                                 
+        tc_reset=''                                                 
+        tc_bold='';   tc_standout=''                           
+        tc_red='';   tc_green=''                             
+        tc_blue='';  tc_cyan=''                              
+      else                                                               
+        # Otherwise trust the terminfo database after all.               
+        test -n "`tput sgr0 2>/dev/null`" && {                           
+          tc_reset=`tput sgr0`                                           
+          test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`       
+          tc_standout=$tc_bold                                           
+          test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`   
+          test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`  
+          test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
+          test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` 
+          test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` 
+        }                                                                
+      fi                                                                 
+    }                                                                    
 
     require_term_colors=:
 }
@@ -604,7 +618,7 @@ func_error ()
 
     $require_term_colors
 
-    func_echo_infix_1 "$tc_standout${tc_red}error$tc_reset" "$*" >&2
+    func_echo_infix_1 "$tc_standout${tc_red}  error$tc_reset" "$*" >&2
 }
 
 
diff --git a/gl/build-aux/funclib.sh b/gl/build-aux/funclib.sh
index 4801b4f..1203d83 100644
--- a/gl/build-aux/funclib.sh
+++ b/gl/build-aux/funclib.sh
@@ -311,18 +311,32 @@ func_require_term_colors ()
 {
     $debug_cmd
 
-    test -t 1 && {
-      test -n "`tput sgr0 2>/dev/null`" && {
-        tc_reset=`tput sgr0`
-        test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
-          tc_standout=$tc_bold
-      test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
-        test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
-        test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
-        test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
-        test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
-      }
-    }
+    test -t 1 && {                                                       
+      # COLORTERM and USE_ANSI_COLORS environment variables take         
+      # precedence, because most terminfo databases neglect to describe  
+      # whether color sequences are supported.                           
+      test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}             
+                                                                       
+      if test 1 = "$USE_ANSI_COLORS"; then                             
+        # Standard ANSI escape sequences                                 
+        tc_reset=''                                                 
+        tc_bold='';   tc_standout=''                           
+        tc_red='';   tc_green=''                             
+        tc_blue='';  tc_cyan=''                              
+      else                                                               
+        # Otherwise trust the terminfo database after all.               
+        test -n "`tput sgr0 2>/dev/null`" && {                           
+          tc_reset=`tput sgr0`                                           
+          test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`       
+          tc_standout=$tc_bold                                           
+          test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`   
+          test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`  
+          test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
+          test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` 
+          test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` 
+        }                                                                
+      fi                                                                 
+    }                                                                    
 
     require_term_colors=:
 }
@@ -594,7 +608,7 @@ func_error ()
 
     $require_term_colors
 
-    func_echo_infix_1 "$tc_standout${tc_red}error$tc_reset" "$*" >&2
+    func_echo_infix_1 "$tc_standout${tc_red}  error$tc_reset" "$*" >&2
 }
 
 


hooks/post-receive
-- 
GNU Libtool



reply via email to

[Prev in Thread] Current Thread [Next in Thread]