From: Colin Patrick McCabe Date: Mon, 4 Oct 2010 21:50:29 +0000 (-0700) Subject: comake: return with exit status of make, not sed X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=364b5919c4e259476bc701656ba2e01fc715ca6d;p=cmccabe-bin comake: return with exit status of make, not sed --- diff --git a/comake b/comake index 6f13e12..6d570dd 100755 --- a/comake +++ b/comake @@ -8,7 +8,8 @@ C_GREEN="${_ESC}[32;01m" C_YELLOW="${_ESC}[33;01m" C_LIGHTBLUE="${_ESC}[36;01m" -exec make "$@" 2>&1 | sed \ +make "$@" 2>&1 | sed \ -e "s/\(^make.*\)/${C_LIGHTBLUE}\1${C_NULL}/" \ -e "s/\(.* [Ee]rror:.*\)/${C_RED}\1${C_NULL}/" \ -e "s/\(.* [Ww]arning:.*\)/${C_YELLOW}\1${C_NULL}/" +exit ${PIPESTATUS[0]}