compat: clean ckmake log of color output
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 25 Feb 2012 02:55:11 +0000 (18:55 -0800)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 25 Feb 2012 02:55:11 +0000 (18:55 -0800)
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
bin/ckmake
scripts/skip-colors [new file with mode: 0755]

index 4d45fb9..ccb291b 100755 (executable)
@@ -63,3 +63,6 @@ for i in $KLIBS; do
 
        nice make clean KLIB=$DIR KLIB_BUILD=$DIR 2>&1 >> $LOG
 done
+
+cat $LOG | ./scripts/skip-colors > $LOG.tmp
+mv $LOG.tmp $LOG
diff --git a/scripts/skip-colors b/scripts/skip-colors
new file mode 100755 (executable)
index 0000000..121626f
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g'