|
|
7711c0 |
From f7e8e465f2c37a28023dea7d3e99a074c0118e73 Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Date: Wed, 27 Mar 2019 17:22:36 +0100
|
|
|
7711c0 |
Subject: [PATCH 098/163] maint: Allow for EXAMPLES in texi2pod
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Message-id: <20190327172308.31077-24-jsnow@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 85195
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 23/55] maint: Allow for EXAMPLES in texi2pod
|
|
|
7711c0 |
Bugzilla: 1691009
|
|
|
7711c0 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Eric Blake <eblake@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
The next commit will add an EXAMPLES section to qemu-nbd.8;
|
|
|
7711c0 |
for that to work, we need to recognize EXAMPLES in texi2pod.
|
|
|
7711c0 |
We also need to add a dependency from all man pages against
|
|
|
7711c0 |
the generator script, since a change to the generator may
|
|
|
7711c0 |
cause the resulting man page to differ.
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
|
7711c0 |
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
|
|
|
7711c0 |
Message-Id: <20190117193658.16413-3-eblake@redhat.com>
|
|
|
7711c0 |
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
7711c0 |
(cherry picked from commit ae560cc34f9ff4662d4ca1425b88fd1f85f52817)
|
|
|
7711c0 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
Makefile | 1 +
|
|
|
7711c0 |
scripts/texi2pod.pl | 2 +-
|
|
|
7711c0 |
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/Makefile b/Makefile
|
|
|
7711c0 |
index c95553f..a6711b2 100644
|
|
|
7711c0 |
--- a/Makefile
|
|
|
7711c0 |
+++ b/Makefile
|
|
|
7711c0 |
@@ -992,6 +992,7 @@ docs/interop/qemu-qmp-ref.dvi docs/interop/qemu-qmp-ref.html \
|
|
|
7711c0 |
docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.7: \
|
|
|
7711c0 |
docs/interop/qemu-qmp-ref.texi docs/interop/qemu-qmp-qapi.texi
|
|
|
7711c0 |
|
|
|
7711c0 |
+$(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
|
|
|
7711c0 |
|
|
|
7711c0 |
ifdef CONFIG_WIN32
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl
|
|
|
7711c0 |
index 39ce584..839b791 100755
|
|
|
7711c0 |
--- a/scripts/texi2pod.pl
|
|
|
7711c0 |
+++ b/scripts/texi2pod.pl
|
|
|
7711c0 |
@@ -398,7 +398,7 @@ $sects{NAME} = "$fn \- $tl\n";
|
|
|
7711c0 |
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
|
|
|
7711c0 |
|
|
|
7711c0 |
for $sect (qw(NAME SYNOPSIS DESCRIPTION OPTIONS ENVIRONMENT FILES
|
|
|
7711c0 |
- BUGS NOTES FOOTNOTES SEEALSO AUTHOR COPYRIGHT)) {
|
|
|
7711c0 |
+ BUGS NOTES FOOTNOTES EXAMPLES SEEALSO AUTHOR COPYRIGHT)) {
|
|
|
7711c0 |
if(exists $sects{$sect}) {
|
|
|
7711c0 |
$head = $sect;
|
|
|
7711c0 |
$head =~ s/SEEALSO/SEE ALSO/;
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|