projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7c315b4
)
comake: return with exit status of make, not sed
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Mon, 4 Oct 2010 21:50:29 +0000 (14:50 -0700)
committer
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Mon, 4 Oct 2010 21:50:29 +0000 (14:50 -0700)
comake
patch
|
blob
|
history
diff --git
a/comake
b/comake
index
6f13e12
..
6d570dd
100755
(executable)
--- 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]}