Always initialize terminal colorization string variables.
authorJim Meyering <meyering@redhat.com>
Mon, 29 Oct 2007 07:41:08 +0000 (08:41 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 29 Oct 2007 07:41:08 +0000 (08:41 +0100)
* build-aux/check.mk (am__tty_colors): Always initialize red, grn, etc.,
In case they're defined in the environment.

ChangeLog
build-aux/check.mk

index fe4bfab26edc456ec636306c5027c96c520f46b0..c0a2d8d0b47c5d2a8155c22b909799619ed928b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-10-29  Jim Meyering  <meyering@redhat.com>
 
+       Always initialize terminal colorization string variables.
+       * build-aux/check.mk (am__tty_colors): Always initialize red, grn, etc.,
+       In case they're defined in the environment.
+
        Avoid test failure in non-srcdir build vs. the git tree.
        * tests/check.mk (vc_exe_in_TESTS): Run this test only in a
        srcdir build directory.  Reported by Andreas Schwab.
index 2bffc414236a80c5e6ca505d77e4f2453c69dc27..c4dfd35e173efdc54ebcf62c2a8a4ef3faa4bf8b 100644 (file)
@@ -66,6 +66,12 @@ if test -t 1 2>/dev/null; then                       \
   lgn='\e[1;32m';                               \
   blu='\e[1;34m';                               \
   std='\e[m';                                   \
+else;                                          \
+  red=;                                                \
+  grn=;                                                \
+  lgn=;                                                \
+  blu=;                                                \
+  std=;                                                \
 fi
 
 # To be inserted before the command running the test.  Creates the