2002-06-17 15:45:32 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
require "/home/dast/perl/date.pm";
|
|
|
|
|
|
|
|
opendir(DIR, ".") or
|
|
|
|
die "Can't opendir()";
|
|
|
|
@logs = sort grep { /^rockbox-/ } readdir(DIR);
|
|
|
|
closedir DIR;
|
|
|
|
|
2002-08-10 09:18:32 +00:00
|
|
|
print "<table class=archive>\n";
|
2002-06-17 15:45:32 +00:00
|
|
|
|
|
|
|
$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 ) {
|
2002-08-10 09:18:32 +00:00
|
|
|
print "</tr><tr>\n" if $lastm != 0;
|
2002-08-09 10:10:32 +00:00
|
|
|
# if ( $m % 6 == 0 ) {
|
|
|
|
# print "</tr><tr valign=top>\n";
|
|
|
|
# }
|
2002-08-10 09:18:32 +00:00
|
|
|
print "<th>$mname</th>\n";
|
2002-06-17 15:45:32 +00:00
|
|
|
$lastm = $m;
|
|
|
|
}
|
2002-08-09 10:10:32 +00:00
|
|
|
# $lines = `wc -l $file` + 0;
|
|
|
|
# print "<li><a test href=\"$file\">$mname $d</a> <small>($lines lines)</small>\n";
|
2002-08-10 09:18:32 +00:00
|
|
|
print "<td><a test href=\"$file\">$d</a></td>\n";
|
2002-06-17 15:45:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#print "<li><a href=\"daily/$_\">$_</a> ($size bytes) $log\n";
|
|
|
|
}
|
|
|
|
print "</ul></td></tr></table>\n";
|