From: mquinson Date: Fri, 13 Jan 2006 01:22:06 +0000 (+0000) Subject: Fix some bugs, but not all X-Git-Tag: v3.3~3463 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/574da53d1ed2278d04743fa4c03578c7a3b9d088?hp=f2ee6b3854b0f42ad545ea6d413aad8d26d081e3;ds=sidebyside Fix some bugs, but not all git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1895 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl index 16425d0994..a0756b3e82 100755 --- a/tools/doxygen/doxygen_postprocesser.pl +++ b/tools/doxygen/doxygen_postprocesser.pl @@ -54,7 +54,7 @@ while () { $entry->{'up'} = $current; push @{$current->{'down'}},$entry; print "Push $1 $2 as child of $current\n" if $debug{'parse'}; - push @allfiles,$1; + push @allfiles,"html/$1"; } close IN; @@ -186,6 +186,7 @@ sub handle_page { close FROM; close TO; rename("$newname","html/$current->{'file'}") unless $debug{'rename'}; +# print "mv $newname html/$current->{'file'}\n"; } # recurse on childs @@ -194,35 +195,40 @@ sub handle_page { } } +### +### Launch the modules navbar reworking +### +handle_page($top,-2);# skip roots (we have 2 roots) in level counting ### ### Post-processsing common to all pages ### -map {push @allfiles,$_} qw(html/index.html html/faq.html html/publis.html html/pages.html); +map {push @allfiles,$_} qw(html/index.html html/faq.html html/publis.html html/pages.html index.php); foreach my $file (@allfiles) { open FROM,"$file" || die; my $outfile = "$file"; - $outfile =~ s/.html/.new.html/; + $outfile =~ s/.(html|php)$/.new.$1/; open TO,">$outfile" || die; + print "POSTPROCESSING $file (tmp=$outfile)\n"; while () { # Add the simgrid css, just in case print TO ''."\n" if (m||); # Rework the navbar - if (m,
  • Main\ Page
  • ,) { - print TO '
  • Overview
  • '; - print TO '
  • FAQ
  • '; + if (m,
  • Main\ Page
  • ,) { + print TO '
  • Overview
  • '."\n"; + print TO '
  • FAQ
  • '."\n"; next; } - if (m,
  • Data\ Structures
  • ,) { - print TO '
  • Publications
  • '; + if (m,
  • Data\ Structures
  • ,) { + print TO '
  • Publications
  • '."\n"; next; } s|Modules|Modules API|g; - s|
  • Directories
  • ||g; + s|
  • Directories
  • ||g; print TO $_; } @@ -231,9 +237,5 @@ foreach my $file (@allfiles) { rename("$outfile", "$file") unless $debug{'rename'}; } -### -### Launch the modules navbar reworking -### -handle_page($top,-2);# skip roots (we have 2 roots) in level counting