From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-044.btinternet.com (mailomta10-re.btinternet.com [213.120.69.103]) by sourceware.org (Postfix) with ESMTPS id 894E53857434 for ; Mon, 2 May 2022 12:55:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 894E53857434 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk Received: from re-prd-rgout-002.btmx-prd.synchronoss.net ([10.2.54.5]) by re-prd-fep-044.btinternet.com with ESMTP id <20220502125544.VHWI3224.re-prd-fep-044.btinternet.com@re-prd-rgout-002.btmx-prd.synchronoss.net>; Mon, 2 May 2022 13:55:44 +0100 Authentication-Results: btinternet.com; none X-SNCR-Rigid: 613A8DE821181A8A X-Originating-IP: [86.139.167.41] X-OWM-Source-IP: 86.139.167.41 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehgdehjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeeliedtjefhtdevkeehueegffegveeftdejjeevfefhiefffeektddvteehheeijeenucfkphepkeeirddufeelrdduieejrdegudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehlohgtrghlhhhoshhtrdhlohgtrghlughomhgrihhnpdhinhgvthepkeeirddufeelrdduieejrdeguddpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdprhgtphhtthhopehnvgiflhhisgesshhouhhrtggvfigrrhgvrdhorhhg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from localhost.localdomain (86.139.167.41) by re-prd-rgout-002.btmx-prd.synchronoss.net (5.8.716.04) (authenticated as jonturney@btinternet.com) id 613A8DE821181A8A; Mon, 2 May 2022 13:55:44 +0100 From: Jon Turney To: newlib@sourceware.org Cc: Jon Turney Subject: [PATCH 3/5] Silence xsltproc when writing manpages Date: Mon, 2 May 2022 13:55:15 +0100 Message-Id: <20220502125518.19808-4-jon.turney@dronecode.org.uk> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220502125518.19808-1-jon.turney@dronecode.org.uk> References: <20220502125518.19808-1-jon.turney@dronecode.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1199.1 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 12:55:47 -0000 Unless make is invoked with V=1, have xmlto pass the parameter 'man.output.quietly=1' to xsltproc to suppress "Note: Writing foo.N" output from the manpages stylesheet. (This doesn't quite do what it says: The output is not silenced if V has any value, including 0. You could consider that either a bug or a feature.) --- newlib/Makefile.am | 3 +++ newlib/libc/Makefile.inc | 2 +- newlib/libm/Makefile.inc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/newlib/Makefile.am b/newlib/Makefile.am index 16c10f4a0..0108d8576 100644 --- a/newlib/Makefile.am +++ b/newlib/Makefile.am @@ -442,6 +442,9 @@ TEXI2DVI = texi2dvi -E TEXINFO_TEX = ../texinfo/texinfo.tex +XMLTO_MAN_QUIET_=--stringparam man.output.quietly=1 +XMLTO_MAN_QUIET=$(XMLTO_MAN_QUIET_$(V)) + if HAVE_DOC include doc/Makefile.inc endif diff --git a/newlib/libc/Makefile.inc b/newlib/libc/Makefile.inc index 21f356664..d07eed764 100644 --- a/newlib/libc/Makefile.inc +++ b/newlib/libc/Makefile.inc @@ -24,7 +24,7 @@ $(LIBC_CHEWOUT_FILES): $(MKDOC) $(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@ %C%_man.stamp: %D%/libc.xml - $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libc.xml + $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libc.xml $(AM_V_at)touch $@ man: %C%_man.stamp diff --git a/newlib/libm/Makefile.inc b/newlib/libm/Makefile.inc index 699bc4caf..7fda120e5 100644 --- a/newlib/libm/Makefile.inc +++ b/newlib/libm/Makefile.inc @@ -24,7 +24,7 @@ $(LIBM_CHEWOUT_FILES): $(MKDOC) $(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@ %C%_man.stamp: %D%/libm.xml - $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libm.xml + $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libm.xml $(AM_V_at)touch $@ man: %C%_man.stamp -- 2.36.0