# HG changeset patch # User Simon Howkins # Date 1273765168 -3600 # Node ID 478794dc03519bef9216f7894a10cb1c509542bb # Parent 2251fde91223f2791fa86a9a767c1b17884643d4 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. diff -r 2251fde91223 -r 478794dc0351 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 = <>)