Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reintroduce table of contents
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 17 Feb 2006 10:25:40 +0000 (10:25 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 17 Feb 2006 10:25:40 +0000 (10:25 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1929 48e7efb5-ca39-0410-a469-dd3cf9ba447f

doc/Makefile.am
tools/doxygen/toc_create.pl

index d757644..c1a9891 100644 (file)
@@ -20,7 +20,7 @@ simgrid_modules.png: simgrid_modules.fig
 
 html: Doxyfile ./logcategories.doc simgrid_modules.map simgrid_modules.png $(DOCSOURCES)
        : # Setting up
 
 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/
        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/
index c5b2b46..52c08da 100755 (executable)
@@ -38,10 +38,13 @@ sub handle_file {
   }
   close FILE;
 
   }
   close FILE;
 
-  my $outfile = ".$infile.toc";
+  my $outfile = "$infile.toc";
+  $outfile =~ s|\./||g;
   $outfile =~ s|\.\./||g;
   $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 "<!-- Automatically generated table of contents --!>\n";
   my($current_level)=-1;
   my($entry);
   print OUTPUT "<!-- Automatically generated table of contents --!>\n";
@@ -70,7 +73,8 @@ sub handle_file {
   }
   print OUTPUT "</div>\n";
   print OUTPUT "<!-- End of automatically generated table of contents --!>\n";
   }
   print OUTPUT "</div>\n";
   print OUTPUT "<!-- End of automatically generated table of contents --!>\n";
+  close OUTPUT;
 } # sub handle_file
 
 
 } # sub handle_file
 
 
-map { handle_file($_) } @ARGV;
\ No newline at end of file
+map { handle_file($_) } @ARGV;