X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b62679a01dc8bc04dd6c24058fa57aea8409a381..ea90c9e9fe4e63beee54ce57b3f503e3ebb05f0b:/tools/doxygen/toc_create.pl diff --git a/tools/doxygen/toc_create.pl b/tools/doxygen/toc_create.pl index c5b2b46bb8..13b1cd0e54 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 "Create a TOC for $infile (in $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;