From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 402FF3858407; Thu, 5 May 2022 00:37:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 402FF3858407 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Silence xsltproc when writing manpages X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: d51aab2abd5ba58fd9765a0aaac00a8dbd0ee886 X-Git-Newrev: 81b7cf09faa523e7bb438abe24e6e5376e45a0e5 Message-Id: <20220505003733.402FF3858407@sourceware.org> Date: Thu, 5 May 2022 00:37:33 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 00:37:33 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D81b7cf09faa= 523e7bb438abe24e6e5376e45a0e5 commit 81b7cf09faa523e7bb438abe24e6e5376e45a0e5 Author: Jon Turney Date: Mon May 2 13:55:15 2022 +0100 Silence xsltproc when writing manpages =20 Unless make is invoked with V=3D1, have xmlto pass the parameter 'man.output.quietly=3D1' to xsltproc to suppress "Note: Writing foo.N" output from the manpages stylesheet. =20 (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.) Diff: --- 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 =3D texi2dvi -E =20 TEXINFO_TEX =3D ../texinfo/texinfo.tex =20 +XMLTO_MAN_QUIET_=3D--stringparam man.output.quietly=3D1 +XMLTO_MAN_QUIET=3D$(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 $@ =20 %C%_man.stamp: %D%/libc.xml - $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% ma= n -m $(srcdir)/man.xsl %D%/libc.xml + $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% ma= n -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libc.xml $(AM_V_at)touch $@ man: %C%_man.stamp =20 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 $@ =20 %C%_man.stamp: %D%/libm.xml - $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% ma= n -m $(srcdir)/man.xsl %D%/libm.xml + $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% ma= n -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libm.xml $(AM_V_at)touch $@ man: %C%_man.stamp