From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:59789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giNaX-0003dC-La for qemu-devel@nongnu.org; Sat, 12 Jan 2019 13:00:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giNYK-0001nl-3n for qemu-devel@nongnu.org; Sat, 12 Jan 2019 12:58:37 -0500 From: Eric Blake Date: Sat, 12 Jan 2019 11:57:54 -0600 Message-Id: <20190112175812.27068-2-eblake@redhat.com> In-Reply-To: <20190112175812.27068-1-eblake@redhat.com> References: <20190112175812.27068-1-eblake@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 01/19] maint: Allow for EXAMPLES in texi2pod List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: nsoffer@redhat.com, rjones@redhat.com, jsnow@redhat.com, vsementsov@virtuozzo.com, qemu-block@nongnu.org The next commit will add an EXAMPLES section to qemu-nbd.8; for that to work, we need to recognize EXAMPLES in texi2pod. We also need to add a dependency from all man pages against the generator script, since a change to the generator may cause the resulting man page to differ. Signed-off-by: Eric Blake --- v3: add generic dependency for all man pages in $(DOCS) instead of per-line editing [Vladimir] --- Makefile | 2 ++ scripts/texi2pod.pl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9ac16d94e8..e2d3ace190a 100644 --- a/Makefile +++ b/Makefile @@ -857,6 +857,8 @@ docs/interop/qemu-qmp-ref.dvi docs/interop/qemu-qmp-r= ef.html \ docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.7: \ docs/interop/qemu-qmp-ref.texi docs/interop/qemu-qmp-qapi.texi +$(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl + # Reports/Analysis %/coverage-report.html: diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl index 39ce584a322..839b7917cf7 100755 --- a/scripts/texi2pod.pl +++ b/scripts/texi2pod.pl @@ -398,7 +398,7 @@ $sects{NAME} =3D "$fn \- $tl\n"; $sects{FOOTNOTES} .=3D "=3Dback\n" if exists $sects{FOOTNOTES}; for $sect (qw(NAME SYNOPSIS DESCRIPTION OPTIONS ENVIRONMENT FILES - BUGS NOTES FOOTNOTES SEEALSO AUTHOR COPYRIGHT)) { + BUGS NOTES FOOTNOTES EXAMPLES SEEALSO AUTHOR COPYRIGHT)) { if(exists $sects{$sect}) { $head =3D $sect; $head =3D~ s/SEEALSO/SEE ALSO/; --=20 2.20.1