[go: up one dir, main page]

File: 01_clmake

package info (click to toggle)
colormake 0.2-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 244 kB
  • ctags: 12
  • sloc: perl: 151; makefile: 23; sh: 9
file content (20 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
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]}