X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0d9fb51432af6491c666d8cec1d2335d35c9a6c7..5e879cb86ce44ec78fc0e318ad7b1932d4378e56:/tools/doxygen/doxygen_postprocesser.pl diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl index 37f925c5b6..aecd1559c9 100755 --- a/tools/doxygen/doxygen_postprocesser.pl +++ b/tools/doxygen/doxygen_postprocesser.pl @@ -3,7 +3,18 @@ use strict; # Add here the pages of the documentation generated by a @page doxygen macro -my @extra_files = qw(html/index.html html/faq.html html/publis.html html/pages.html html/modules.html html/contrib.html index.php); +my @extra_files = qw(html/index.html html/faq.html html/history.html + html/publis.html html/publis_core.html html/publis_extern.html html/publis_intra.html + html/pages.html html/modules.html html/contrib.html index.php + html/GRAS_tut.html); + +# GRAS tutorial +map {push @extra_files, "html/GRAS_tut_$_.html"} qw (intro + tour tour_install tour_setup tour_simpleexchange tour_args tour_callbacks tour_globals + tour_logs tour_timers tour_exceptions tour_rpc); + +# GRAS examples +map {push @extra_files, "html/GRAS_ex_$_.html"} qw (ping mmrpc token timer); my %debug; $debug{'parse'} = 0; # show how we parse the module tree @@ -30,9 +41,9 @@ my $entry; $current->{'label'}="ROOT"; push @{$top->{'down'}},$current; +print "Push $current as child of $top\n" if $debug{'parse'}; $current=$top; -print "Push $current as child of $top\n" if $debug{'parse'}; while () { if (/|; + s|
  • [^<]*
  • |
  • Modules API
  • |; +# print "++Write $_"; + print TO "$_"; + last if (m||); } foreach (@tabs) { - print TO $_; +# print "TAB: $_"; + print TO "$_"; } while () { - print TO $_; + print TO "$_"; } close FROM; close TO; rename("$newname","html/$current->{'file'}") unless $debug{'rename'}; -# print "mv $newname html/$current->{'file'}\n"; } # recurse on childs @@ -210,8 +265,11 @@ handle_page($top,-2);# skip roots (we have 2 roots) in level counting ### Post-processsing common to all pages ### map {push @allfiles,$_} @extra_files; +print "All files: ".(join(", ",@allfiles))."\n" if $debug{'parse'}; foreach my $file (@allfiles) { + $file =~ s/.html/.handlepage.html/ if $debug{'rename'}; # Take right name if debugging + open FROM,"$file" || die; my $outfile = "$file"; $outfile =~ s/.(html|php)$/.new.$1/; @@ -224,16 +282,17 @@ foreach my $file (@allfiles) { # Rework the navbar if (m,
  • Main\ Page
  • ,) { - print TO '
  • Overview
  • '."\n"; - print TO '
  • FAQ
  • '."\n"; + print TO ' Overview'."\n"; + print TO ' FAQ'."\n"; next; } if (m,
  • Data\ Structures
  • ,) { - print TO '
  • Publications
  • '."\n"; + print TO ' Publications'."\n"; + print TO ' History'."\n"; next; } s|Modules|Modules API|g; - s|
  • Directories
  • ||g; +# s|
  • Directories
  • ||g; print TO $_; }