#!/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 "\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 "\n" if $lastm != 0; print "
$mname $y\n"; print "
    \n"; $lastm = $m; } print "
  • $mname $d\n"; } } #print "
  • $_ ($size bytes) $log\n"; } print "
\n";