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 <rdiezmail-openwrt@yahoo.com>
This commit is contained in:
R. Diez 2019-01-21 18:32:06 +00:00 committed by Hauke Mehrtens
parent 55b808e0c4
commit eabc1ddc45

View File

@ -19,6 +19,7 @@ else
endif endif
ifeq ($(IS_TTY),1) ifeq ($(IS_TTY),1)
ifneq ($(strip $(NO_COLOR)),1)
define progress define progress
printf "\033[M\r$(1)" >&2; printf "\033[M\r$(1)" >&2;
endef endef
@ -27,6 +28,11 @@ else
:; :;
endef endef
endif endif
else
define progress
:;
endef
endif
define feedname define feedname
$(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1)))) $(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1))))