3 $basedir = "/home/dast/rockbox-build/daily-build/";
5 opendir(DIR
, $basedir) or
6 die "Can't opendir($basedir)";
7 @tarballs = sort grep { /^rockbox-daily-/ } readdir(DIR
);
12 for ( sort {$b <=> $a} @tarballs ) {
13 $size = (stat("$basedir/$_"))[7];
17 if ( -f
"$basedir/changes-$date.txt") {
18 $lines = `grep "Number of changes:" $basedir/changes-$date.txt | cut "-d " -f4` + 0;
19 $log = "<a href=\"daily/changes-$date.html\">Changelog</a> <small>($lines changes)</small>";
22 print "<li><a href=\"daily/$_\">$_</a> <small>($size bytes)</small> $log\n";