X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c33b60fba9958748a202db96d88ce9263cde884b..52b41ba5f4cbc90aa34bb84e6774e880b00b2776:/tools/doxygen/doxygen_postprocesser.pl diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl index 0a126bd114..d35168f9ab 100755 --- a/tools/doxygen/doxygen_postprocesser.pl +++ b/tools/doxygen/doxygen_postprocesser.pl @@ -2,9 +2,26 @@ use strict; +# Add here the pages of the documentation generated by a @page doxygen macro +my @extra_files = qw(html/index.html html/pages.html html/modules.html html/annotated.html html/functions.html + html/functions_vars.html index.php + html/GRAS_tut.html html/tracing.html html/platform.html html/install.html html/bindings.html + html/options.html html/use.html html/pls.html html/FAQ.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_simpledata tour_rpc tour_explicitwait + tour_message_recaping tour_staticstruct tour_pointers tour_dynar + tour_manualdatadef tour_exchangecb); + +# 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 $debug{'input'} = 0; # display the resulting tree +$debug{'handle'}= 0; # Be verbose on the post-processing $debug{'rename'}= 0; # do not overwrite the files (allows several debuging runs without rerunning doxygen) my @allfiles; @@ -24,22 +41,34 @@ my $top; my $current; my $entry; -$current->{'label'}="ROOT"; -push @{$top->{'down'}},$current; +# $current->{'label'}="ROOT"; +# push @{$top->{'down'}},$current; +# print "Push $current '".($current->{'label'})."' as child of $top '".($top->{'label'})."'\n" if $debug{'parse'}; +# $current=$top; +$top->{'label'}="ROOT"; +print "Create ROOT $top\n" if $debug{'parse'}; $current=$top; -print "Push $current as child of $top\n" if $debug{'parse'}; +# Read the whole data to postprocess it a bit +my $in; while () { + $in .= $_; +} +$in =~ s/