All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/12] configure.sh: use colors only with terminal
@ 2013-10-16 10:43 Mikko Rapeli
  2013-10-16 10:43 ` [PATCH 02/12] configure.sh: use gcc as default compiler Mikko Rapeli
                   ` (10 more replies)
  0 siblings, 11 replies; 19+ messages in thread
From: Mikko Rapeli @ 2013-10-16 10:43 UTC (permalink / raw)
  To: trinity; +Cc: mikko.rapeli

The color codes mess up less and log files.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
---
 configure.sh |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/configure.sh b/configure.sh
index 3b3823f..d7f16cb 100755
--- a/configure.sh
+++ b/configure.sh
@@ -2,9 +2,11 @@
 
 DEVEL=0
 
-RED="^[[1;31m"
-GREEN="^[[1;32m"
-COL_RESET="^[[0;m"
+if [ -t 1 ]; then
+	RED="^[[1;31m"
+	GREEN="^[[1;32m"
+	COL_RESET="^[[0;m"
+fi
 
 MISSING_DEFS=0
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-10-28 10:48 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 10:43 [PATCH 01/12] configure.sh: use colors only with terminal Mikko Rapeli
2013-10-16 10:43 ` [PATCH 02/12] configure.sh: use gcc as default compiler Mikko Rapeli
2013-10-17  4:23   ` Michael Ellerman
2013-10-17  6:45     ` Mikko Rapeli
2013-10-17 12:53       ` Michael Ellerman
2013-10-18 18:01         ` Dave Jones
2013-10-16 10:43 ` [PATCH 03/12] configure.sh: expand tilde from CROSS_COMPILE variable Mikko Rapeli
2013-10-16 10:43 ` [PATCH 04/12] configure.sh: show error output when something is not found Mikko Rapeli
2013-10-18 18:00   ` Dave Jones
2013-10-18 18:07     ` Dave Jones
2013-10-28 10:48       ` [PATCH v2] configure.sh: support cross compilation with sysroot Mikko Rapeli
2013-10-16 10:43 ` [PATCH 05/12] " Mikko Rapeli
2013-10-16 10:43 ` [PATCH 06/12] Makefile: use gcc as compiler Mikko Rapeli
2013-10-16 10:43 ` [PATCH 07/12] Makefile: support sysroot for libs and includes Mikko Rapeli
2013-10-16 10:43 ` [PATCH 08/12] Define IP_MULTICAST_ALL if header files don't have it Mikko Rapeli
2013-10-16 10:43 ` [PATCH 09/12] net/irda_setsockopt.c: workaround for old irda headers Mikko Rapeli
2013-10-16 10:43 ` [PATCH 10/12] net/netlink.c: support older kernels and headers Mikko Rapeli
2013-10-16 10:43 ` [PATCH 11/12] net/netlink_setsockopt.c: workaround for old headers Mikko Rapeli
2013-10-16 10:43 ` [PATCH 12/12] Makefile: install depends on trinity target Mikko Rapeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.