rockbox/www/getbugs.pl
Robert Hak 6ad0a4bbe3 fixed and html bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1657 a1c6a512-1295-4272-9138-f99709370657
2002-08-10 07:56:10 +00:00

18 lines
907 B
Perl

#!/usr/bin/perl
@html = `curl --silent "http://sourceforge.net/tracker/?group_id=44306&atid=439118"`;
@entries = grep {/HREF=\"\/tracker\/index.php/} @html;
print "<table class=bugs>\n";
print "<tr><th>submitted</th><th>id</th><th>summary</th><th>submitted by</th><th>assigned to</th></tr>\n";
for ( @entries ) {
if ( /NOWRAP>(\d+).*?HREF=\"(.*?)\">(.*?)<.*?(nbsp;|\*) (.*?)<.*?\>(\w+)<.*?\>(\w+)</ ) {
($submit, $assigned, $date, $id, $num, $summary) = ($7, $6, $5, $2, $1, $3);
$submit = "<a href=http://sourceforge.net/users/$submit>$submit</a>" if ( $submit ne "nobody" );
$assigned = "<a href=http://sourceforge.net/users/$assigned>$assigned</a>" if ( $assigned ne "nobody" );
print "<tr><td>$date</td><td><a href=\"http://www.sourceforge.net$id\">$num</a></td><td>$summary</td><td>$submit</td><td>$assigned</td></tr>\n";
}
}
print "</table>\n";