From 2fdf07641f3b8c982a2489daa613df628361306b Mon Sep 17 00:00:00 2001 From: alegrand Date: Tue, 13 Apr 2010 22:22:09 +0000 Subject: [PATCH 1/1] Bugfix + better output git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7557 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/doxygen/bibtex2html_table_count.pl | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/tools/doxygen/bibtex2html_table_count.pl b/tools/doxygen/bibtex2html_table_count.pl index 5d3db52414..36dc8aa0e7 100755 --- a/tools/doxygen/bibtex2html_table_count.pl +++ b/tools/doxygen/bibtex2html_table_count.pl @@ -12,11 +12,11 @@ while($line = ) { } next; } - if($line =~ /^\s*year\s*=\s*/) { + if($line =~ /^\s*year\s*=\s*/i) { $year = $line; $year =~ s/\D*//g; } - if($line =~ /^\s*category\s*=\s*/) { + if($line =~ /^\s*category\s*=\s*/i) { $cat = $line; $cat =~ s/^.*=//; $cat =~ s/\s*//g; @@ -64,5 +64,25 @@ foreach $cat (keys %count) { print "$sum\n"; print "\n"; } + + + +print "Total "; + +$ssum=0; +foreach $year ($year_min..$year_max) { + $sum = 0; + foreach $cat (keys %count) { + if(defined($count{$cat}{$year})) { + $sum+=$count{$cat}{$year}; + } + } + $ssum+=$sum; + print "$sum "; +} +print "$ssum "; +print "\n"; + + print "\n"; -- 2.20.1