# HG changeset patch # User Arnaud Lenoir # Date 1255972011 -3600 # Node ID 24273662fe973ed056f8dea6f730578480660296 # Parent 5adea361d8964bc1d77fc600df1a0109e33dd102 Count the number of bugs and print on the default ouptut to update the Release Notes with that value. Need to be added automatically. diff -r 5adea361d896 -r 24273662fe97 bzcsv2mw/bzcsv2mw.pl --- a/bzcsv2mw/bzcsv2mw.pl Fri Nov 06 12:10:52 2009 +0000 +++ b/bzcsv2mw/bzcsv2mw.pl Mon Oct 19 18:06:51 2009 +0100 @@ -40,6 +40,7 @@ my $file = ""; my $help = 0; +my $count_nb_total_bugs=0; if (!GetOptions( "csv=s" => \$file, @@ -88,7 +89,8 @@ foreach (@columns) { print MWTXT "|$_\n"; - } + } + $count_nb_total_bugs++; } } else @@ -102,4 +104,5 @@ close CSV; print MWTXT "|}\n"; -close MWTXT; \ No newline at end of file +close MWTXT; +print "\nThe number of bugs is: $count_nb_total_bugs\n";