File: clmake

package info (click to toggle)
colormake 0.2-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 116 kB
  • ctags: 4
  • sloc: perl: 73; makefile: 59; sh: 18
file content (12 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#
# Wrapper around make, to colorize it's output and pipe through less.
# Jumps to the first gcc error that occurs during the build process.
#

SIZE=`/bin/stty size`
if [ -z "${CLMAKE_OPTS}" ]; then
	CLMAKE_OPTS='-r -pError'
fi
/usr/bin/make "$@" 2>&1 | /usr/share/colormake/colormake.pl $SIZE | /usr/bin/less ${CLMAKE_OPTS}
exit ${PIPESTATUS[0]}