compat: Use a bash function to colorify the messages
authorOzan Çağlayan <ozancag@gmail.com>
Tue, 17 Jul 2012 12:48:22 +0000 (15:48 +0300)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Wed, 18 Jul 2012 00:00:50 +0000 (17:00 -0700)
commite17d6531decd57c60744c5043f067cfa0c679d8e
treeb34a0c7ef4c7a92ca61227623236e54a16d0b81b
parent76ae6b8d930ad4fdc7da0e7c81e1ffdb6c944c3d
compat: Use a bash function to colorify the messages

Declare a prettify() function that takes a color and a message
parameter instead of wrapping every message in the script with
ANSI codes.

Also add a nocolor mode which will be enabled with the -n flag.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
bin/ckmake