From: Jim Meyering Date: Mon, 29 Oct 2007 07:41:08 +0000 (+0100) Subject: Always initialize terminal colorization string variables. X-Git-Tag: v6.9.89~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=973d42b90de3c4af705c99536cd1f0ffccd26791;p=platform%2Fupstream%2Fcoreutils.git 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. --- diff --git a/ChangeLog b/ChangeLog index fe4bfab26..c0a2d8d0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-10-29 Jim Meyering + 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. diff --git a/build-aux/check.mk b/build-aux/check.mk index 2bffc4142..c4dfd35e1 100644 --- a/build-aux/check.mk +++ b/build-aux/check.mk @@ -66,6 +66,12 @@ if test -t 1 2>/dev/null; then \ lgn=''; \ blu=''; \ std=''; \ +else; \ + red=; \ + grn=; \ + lgn=; \ + blu=; \ + std=; \ fi # To be inserted before the command running the test. Creates the