[PATCH 2/4] Tweak texi2pod.pl to make it print the various sections in the generated document following the same order as that used in the texi file.
Stefano Sabatini
stefano.sabatini-lala
Thu Apr 29 10:11:30 CEST 2010
---
doc/texi2pod.pl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 51ae261..9fb2457 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -26,6 +26,7 @@
$output = 0;
$skipping = 0;
%sects = ();
+ at sects_sequence = ();
$section = "";
@icstack = ();
@endwstack = ();
@@ -300,8 +301,8 @@ die "No filename or title\n" unless defined $fn && defined $tl;
$sects{NAME} = "$fn \- $tl\n";
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
-for $sect (qw(NAME SYNOPSIS DESCRIPTION OPTIONS EXAMPLES ENVIRONMENT FILES
- BUGS NOTES FOOTNOTES SEEALSO AUTHOR COPYRIGHT)) {
+unshift @sects_sequence, "NAME";
+for $sect (@sects_sequence) {
if(exists $sects{$sect}) {
$head = $sect;
$head =~ s/SEEALSO/SEE ALSO/;
--
1.7.0
--zhXaljGHf11kAtnf
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0004-Add-ffmpeg-devices-man-page.patch"
More information about the ffmpeg-devel
mailing list