From patchwork Mon Jan 21 18:32:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gio--- via openwrt-devel X-Patchwork-Id: 1028835 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lists.openwrt.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CkSchuu5"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43k0X33XzVz9s4s for ; Tue, 22 Jan 2019 05:32:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Date:Sender:Content-Type: Subject:List-Help:Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From: List-Post:List-Id:Message-ID:MIME-Version:To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=t6NBRq/BeX23yj4UNht/eGOwNYzYVhxc/6INZW61Lt0=; b=CkSchuu5seMUtWwhyeEEVMNp9m XHOSjW3CEmdNGI9NImui9pwun4FL7qbJnKDxMXCoqJomrdaFfa7pJnwFPi7h1dAbjU3jtY9bBuygC muwAakpVH1KSMcmB8b+TXuT8rlyRv9v38wKnwrdtMTgY47zR+wl38hBhSmICUXgAsrGzsCVNvi9kl cidhLNo8QVArrAHokqOwEGNaanzt9UD4TbK2+XYUBtgyZC/Pz/h8bs8vssm9cXRjc9wSF+VtMWGjU Zc/osKEdszbx0EcJa7zwd9769iXOg54nQoqxWzZTKSZG9hAJkcLjzK3+g/y04/zkuSgkGHS+YlTjd hMeoN1Ew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gleMg-0006DE-SZ; Mon, 21 Jan 2019 18:32:06 +0000 To: openwrt-devel@lists.openwrt.org MIME-Version: 1.0 Message-ID: List-Id: List-Post: X-Patchwork-Original-From: "R. Diez via openwrt-devel" From: gio--- via openwrt-devel Precedence: list X-Mailman-Version: 2.1.21 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: "R. Diez" List-Help: Subject: [OpenWrt-Devel] [PATCH] Honour NO_COLOR in include/scan.mk Sender: "openwrt-devel" Date: Mon, 21 Jan 2019 18:32:06 +0000 Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org 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 e6b21b2..724dbfa 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 :;