Added output of Heading above table, so the script generates all of the desired content for the wiki page, not just part of it.
authorSimon Howkins <simonh@symbian.org>
Thu, 13 May 2010 16:39:28 +0100
changeset 268 478794dc0351
parent 267 2251fde91223
child 269 0a0ad5daa2f9
Added output of Heading above table, so the script generates all of the desired content for the wiki page, not just part of it. A --pdk option can be passed to be used as the PDK release number, if this is known.
williamr/buglist_to_mediawiki.pl
--- a/williamr/buglist_to_mediawiki.pl	Thu May 13 16:27:37 2010 +0100
+++ b/williamr/buglist_to_mediawiki.pl	Thu May 13 16:39:28 2010 +0100
@@ -12,16 +12,28 @@
 # Contributors:
 #
 # Description:
-# Convert tab-separated buglist into Mediawiki table
+# Convert comma-separated buglist into Mediawiki table
+#
+# Usage
+# buglist_to_mediawiki bugreport.csv [--pdk=PDK_3.0.0] > bugs.mediawiki.txt
 
 use strict;
 
 use FindBin;
 use lib "$FindBin::Bin\\..\\lib";
 use Text::CSV;
+use Getopt::Long;
+
+my $PDK="PDK_???";
+
+GetOptions((
+	'pdk=s' => \$PDK,
+));
 
 my $csv = Text::CSV->new();
 
+print "== Defects open at time of creation of $PDK ==\n\n";
+
 print "{|\n";   # start of table
 
 while (my $line = <>)