[exim-cvs] cvs commit: exim/exim-doc/doc-scripts f2wiki

Página Inicial
Delete this message
Reply to this message
Autor: Nigel Metheringham
Data:  
Para: exim-cvs
Assunto: [exim-cvs] cvs commit: exim/exim-doc/doc-scripts f2wiki
nm4 2004/11/12 15:25:39 GMT

  Modified files:
    exim-doc/doc-scripts f2wiki 
  Log:
  fixed ordering of FAQ TOC page


  Revision  Changes    Path
  1.2       +3 -1      exim/exim-doc/doc-scripts/f2wiki


  Index: f2wiki
  ===================================================================
  RCS file: /home/cvs/exim/exim-doc/doc-scripts/f2wiki,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- f2wiki    12 Nov 2004 14:48:08 -0000    1.1
  +++ f2wiki    12 Nov 2004 15:25:39 -0000    1.2
  @@ -2,7 +2,7 @@
   #
   # Script to convert Exim FAQ into wiki markup - moin flavour
   #
  -# $Cambridge: exim/exim-doc/doc-scripts/f2wiki,v 1.1 2004/11/12 14:48:08 nm4 Exp $
  +# $Cambridge: exim/exim-doc/doc-scripts/f2wiki,v 1.2 2004/11/12 15:25:39 nm4 Exp $
   #
   use strict;
   use integer;
  @@ -276,7 +276,9 @@
       my $meta = shift;


       my $tfh = IO::File->new('FAQ', 'w');
  -    foreach my $sect (values %{$meta->{sections}}) {
  +    my @sections = sort { $a->{num} <=> $b->{num} }
  +      values %{$meta->{sections}};
  +    foreach my $sect (@sections) {
       my $fh = IO::File->new($sect->{wikifile}, 'w');
       $fh->print(join("\n",
               '##language:en',