initng/test-syntax.sh
glen
cvs at pld-linux.org
Mon Dec 19 09:56:22 CET 2005
Author: glen
Date: Mon Dec 19 09:56:17 2005
New Revision: 6662
Modified:
initng/test-syntax.sh
Log:
- colourize output a little
Modified: initng/test-syntax.sh
==============================================================================
--- initng/test-syntax.sh (original)
+++ initng/test-syntax.sh Mon Dec 19 09:56:17 2005
@@ -1,2 +1,11 @@
#!/bin/sh
-initng-test_parser
+
+initng-test_parser | awk \
+-vR=$(echo -ne '\033[1;31m') \
+-vG=$(echo -ne '\033[1;32m') \
+-vK=$(echo -ne '\033[0m') \
+'{
+ gsub(/ok/, G "ok" K);
+ gsub(/fail/, R "fail" K);
+ print
+}'
More information about the pld-cvs-commit
mailing list