2002-05-27 14:22:23 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
$basedir = "/home/dast/rockbox-build/daily-build/";
|
|
|
|
|
|
|
|
opendir(DIR, $basedir) or
|
|
|
|
die "Can't opendir($basedir)";
|
2002-06-07 11:38:20 +00:00
|
|
|
@tarballs = sort grep { /^rockbox-daily-/ } readdir(DIR);
|
2002-05-27 14:22:23 +00:00
|
|
|
closedir DIR;
|
|
|
|
|
|
|
|
print "<ul>\n";
|
|
|
|
|
|
|
|
for ( @tarballs ) {
|
2002-05-29 08:30:36 +00:00
|
|
|
$size = (stat("$basedir/$_"))[7];
|
|
|
|
$log = "";
|
|
|
|
if (/-(\d+)/) {
|
|
|
|
$date = $1;
|
2002-06-12 12:59:57 +00:00
|
|
|
if ( -f "$basedir/changes-$date.txt") {
|
2002-08-27 09:34:07 +00:00
|
|
|
$lines = `grep "Number of changes:" $basedir/changes-$date.txt | cut "-d " -f4` + 0;
|
2003-01-10 12:13:21 +00:00
|
|
|
$log = "<a href=\"daily/changes-$date.html\">Changelog</a> <small>($lines changes)</small>";
|
2002-05-29 08:30:36 +00:00
|
|
|
}
|
|
|
|
}
|
2002-08-27 09:34:07 +00:00
|
|
|
print "<li><a href=\"daily/$_\">$_</a> <small>($size bytes)</small> $log\n";
|
2002-05-27 14:22:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
print "</ul>\n";
|