[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
Wed Jun 9 01:04:06 CEST 2010


On date Sunday 2010-06-06 00:06:03 +0200, Stefano Sabatini encoded:
> On date Tuesday 2010-05-04 19:52:14 +0200, Stefano Sabatini encoded:
> > ---
> >  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/;
> 
> I'll apply in three days if there are no objections.
> 
> Note that this commit should allow the display of all the sections of
> the texinfo file (not only that listed in the removed chunk).

Applied.
-- 
FFmpeg = Free & Forgiving Mythic Pitiless Elected Genius



More information about the ffmpeg-devel mailing list