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)";
|
|
|
|
@tarballs = grep { /^rockbox-daily-/ } readdir(DIR);
|
|
|
|
closedir DIR;
|
|
|
|
|
|
|
|
print "<ul>\n";
|
|
|
|
|
|
|
|
for ( @tarballs ) {
|
2002-05-29 08:30:36 +00:00
|
|
|
$size = (stat("$basedir/$_"))[7];
|
|
|
|
$log = "";
|
|
|
|
if (/-(\d+)/) {
|
|
|
|
$date = $1;
|
|
|
|
if ( -f "$basedir/changes-$date.log") {
|
|
|
|
$log = "<a href=\"daily/changes-$date.log\">Changelog</a>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print "<li><a href=\"daily/$_\">$_</a> ($size bytes) $log\n";
|
2002-05-27 14:22:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
print "</ul>\n";
|