[go: up one dir, main page]

File: clmake

package info (click to toggle)
colormake 0.2-3.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 160 kB
  • ctags: 4
  • sloc: perl: 72; makefile: 56; sh: 27
file content (12 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download
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/bin/colormake.pl $SIZE | /usr/bin/less ${CLMAKE_OPTS}
exit ${PIPESTATUS[0]}