From d5452f2220046484642bb07f9e870663bc5f054d Mon Sep 17 00:00:00 2001 From: alegrand Date: Fri, 17 Feb 2006 10:25:40 +0000 Subject: [PATCH 1/1] reintroduce table of contents git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1929 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- doc/Makefile.am | 2 +- tools/doxygen/toc_create.pl | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index d7576445ab..c1a9891ccd 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -20,7 +20,7 @@ simgrid_modules.png: simgrid_modules.fig html: Doxyfile ./logcategories.doc simgrid_modules.map simgrid_modules.png $(DOCSOURCES) : # Setting up - touch index-API.doc .FAQ.doc.toc + touch index-API.doc .FAQ.doc.toc .index.doc.toc test -e html || mkdir html cp @srcdir@/simgrid_logo.png @srcdir@/simgrid_modules.png html/ cp @srcdir@/Paje_MSG_screenshot_thn.jpg @srcdir@/Paje_MSG_screenshot.jpg html/ diff --git a/tools/doxygen/toc_create.pl b/tools/doxygen/toc_create.pl index c5b2b46bb8..52c08da4b6 100755 --- a/tools/doxygen/toc_create.pl +++ b/tools/doxygen/toc_create.pl @@ -38,10 +38,13 @@ sub handle_file { } close FILE; - my $outfile = ".$infile.toc"; + my $outfile = "$infile.toc"; + $outfile =~ s|\./||g; $outfile =~ s|\.\./||g; $outfile =~ s|/|_|g; - open OUTPUT,"> $outfile"; + $outfile = ".$outfile"; + print "<<<<< $infile -> $outfile >>>>>>\n"; + open OUTPUT,"> ./$outfile"; my($current_level)=-1; my($entry); print OUTPUT "\n"; @@ -70,7 +73,8 @@ sub handle_file { } print OUTPUT "\n"; print OUTPUT "\n"; + close OUTPUT; } # sub handle_file -map { handle_file($_) } @ARGV; \ No newline at end of file +map { handle_file($_) } @ARGV; -- 2.20.1