rockbox/www/irc/irclogs.pl
Björn Stenberg f24a88b79c Updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1662 a1c6a512-1295-4272-9138-f99709370657
2002-08-10 09:18:32 +00:00

40 lines
1.1 KiB
Perl
Executable file

#!/usr/bin/perl
require "/home/dast/perl/date.pm";
opendir(DIR, ".") or
die "Can't opendir()";
@logs = sort grep { /^rockbox-/ } readdir(DIR);
closedir DIR;
print "<table class=archive>\n";
$lasty = 0;
$lastm = 0;
for ( @logs ) {
$size = (stat("$_"))[7];
$file = $_;
$log = "";
if (/-(\d+)/) {
if ( $1 =~ /(\d\d\d\d)(\d\d)(\d\d)/ ) {
$y = $1;
$m = $2;
$d = $3;
$mname = ucfirst MonthNameEng($m);
if ( $m != $lastm ) {
print "</tr><tr>\n" if $lastm != 0;
# if ( $m % 6 == 0 ) {
# print "</tr><tr valign=top>\n";
# }
print "<th>$mname</th>\n";
$lastm = $m;
}
# $lines = `wc -l $file` + 0;
# print "<li><a test href=\"$file\">$mname $d</a> <small>($lines lines)</small>\n";
print "<td><a test href=\"$file\">$d</a></td>\n";
}
}
#print "<li><a href=\"daily/$_\">$_</a> ($size bytes) $log\n";
}
print "</ul></td></tr></table>\n";