[coreboot] New patch to review for coreboot: f33c9c4 buildgcc: Fix colors for dash

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Mon Oct 31 12:16:53 CET 2011

Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/361


commit f33c9c4950fcf081a2e081f27ae07de940c31c66
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Mon Oct 31 12:15:55 2011 +0100

    buildgcc: Fix colors for dash
    The previous fix broke buildgcc colors on MacOS X.
    This uses an encoding that should be more universal.
    Change-Id: I31ac6090ffb7c04784cf6566823652f229aebbb5
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
 util/crossgcc/buildgcc |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index a298dba..ee2a81b 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -23,11 +23,6 @@
 CROSSGCC_DATE="October 10th, 2011"
-# To enable colors on dash(1)
-if [ -x /usr/bin/printf ]; then
-alias printf=/usr/bin/printf
 # default settings
@@ -73,15 +68,15 @@ IASL_DIR="acpica-unix-${IASL_VERSION}"
-NC='\e[0m' # No Color
+NC='\033[0m' # No Color

More information about the coreboot mailing list