bjam output in colours

Recently, I’ve been heavily using Boost Build and bjam utility for building GGL library tests on Linux, so I developed a small tool that makes it easier to visually recognize compilation output by printing bjam messages in colours.

The script is called colorbb and was inspired by colormake written by Bjarni R. Einarsson. Actually, I grabbed Bjarni’s two scripts written in Perl and Shell and adopted it to parse bjam output.

colorbb-ggl-build

colorbb is a very simple utility and it likely needs to be improved to properly recognize all bjam messages. It’s available from my SVN repository at http://svn.devjavu.com/mloskot/scripts/colorbb/ personal Git repository at http://github.com/mloskot/.

colormake on Mac OS X

I have just discovered colormake utility – a simple wrapper around make to colorize its output.

colormake is really helpful for someone who heavily works in Unix shell environments to visually analyse messages generated during programs compilation. Simply, colors are used as another language for communication with a user, complementing letters printed out to the console. The colormake wrapper in combination with clean console fonts like Terminus serve as a great tandem in hacker daily job.

First, I started to use colormake 0.2 on Ubuntu Linux:

$ sudo apt-get install colormake

Next, I tried it on Mac OS X 10.5, though with no luck. Basically, because of subtle differences in Bash and format of GCC output messages. So, simple patch (colormake-0.2-mloskot.patch) is required to get colormake 0.2 working on Mac OS X. I’ve sent this patch to Bjarni – the author of colormake, so perhaps he will like to include it in next (0.3?) version. BTW, thanks to Bjarni for the colormake tool!