Search Linux Wireless

[PATCH 2/4] compat: clean ckmake log of color output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxx>

Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxx>
---
 bin/ckmake          |    3 +++
 scripts/skip-colors |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100755 scripts/skip-colors

diff --git a/bin/ckmake b/bin/ckmake
index 4d45fb9..ccb291b 100755
--- a/bin/ckmake
+++ b/bin/ckmake
@@ -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
index 0000000..121626f
--- /dev/null
+++ b/scripts/skip-colors
@@ -0,0 +1,2 @@
+#!/bin/bash
+perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g'
-- 
1.7.4.15.g7811d

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux