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 4d45fb99ce2a3d5df74550eceebf9026e858995a..ccb291b1dd11cce7021529319f87720bab46881a 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'