[FFmpeg-devel] [PATCH 15/19] 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
Tue May 4 19:52:14 CEST 2010
---
doc/texi2pod.pl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 8c09084..fc342a9 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
More information about the ffmpeg-devel
mailing list