From eabc1ddc4541019cf3e4c10b3a15c0710d87bca3 Mon Sep 17 00:00:00 2001 From: "R. Diez" Date: Mon, 21 Jan 2019 18:32:06 +0000 Subject: [PATCH] build: Honour NO_COLOR in include/scan.mk The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. Hi all: This is my first OpenWrt patch. I am a clean, pure newbie! 8-) Honour NO_COLOR in Makefile function 'progress' in include/scan.mk, in the same way that include/verbose.mk does. Signed-off-by: R. Diez --- include/scan.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/scan.mk b/include/scan.mk index e6b21b27b0..724dbfaf17 100644 --- a/include/scan.mk +++ b/include/scan.mk @@ -19,9 +19,15 @@ else endif ifeq ($(IS_TTY),1) - define progress + ifneq ($(strip $(NO_COLOR)),1) + define progress printf "\033[M\r$(1)" >&2; - endef + endef + else + define progress + :; + endef + endif else define progress :; -- 2.30.2