My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
s='s/error:/\x1B[1;31m&\x1B[0m/ig;
s/warning:/\x1B[1;35m&\x1B[0m/ig;
s/note:/\x1B[1;32m&\x1B[0m/ig;
s/info:/\x1B[1;32m&\x1B[0m/ig;'
# redirection magic makes the sed command work on stdout
# as well as on stderr, without mixing them up
f="`mktemp -t status.XXXXXX`"
{ { {
$@
} ; echo $? > $f; } 3>&1 1>&2 2>&3 | sed "$s"; } 3>&1 1>&2 2>&3 | sed "$s"
read ret < $f
rm -f $f
exit $ret

Change log

r4581 by dolik on Feb 13, 2012   Diff
.lpbuild2: packaging improvements (RM
#244)
Go to: 
Project members, sign in to write a code review

Older revisions

r4562 by dolik on Feb 8, 2012   Diff
+UppBuilder: upp file parser and
makefile generator
All revisions of this file

File info

Size: 396 bytes, 14 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting