1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Return the original exit value from the make command
Author: Federico 'Derfel' Stella <derfel@alessandria.linux.it>
Bug-Debian: http://bugs.debian.org/171318
--- a/clmake
+++ b/clmake
@@ -5,3 +5,4 @@
#
make $* 2>&1 | colormake.pl `stty size` | less -r -pError
+exit ${PIPESTATUS[0]}
--- a/cmake
+++ b/cmake
@@ -4,4 +4,6 @@
# Jumps to the first gcc error that occurs during the build process.
#
-make $* 2>&1 | colormake.pl `stty size`
+SIZE=`/bin/stty size`
+/usr/bin/make "$@" 2>&1 | /usr/share/colormake/colormake.pl $SIZE
+exit ${PIPESTATUS[0]}
|