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;
|
|
|
|
|
2006-01-30 09:56:08 +00:00
|
|
|
for ( sort {$b cmp $a} @tarballs ) {
|
2002-05-29 08:30:36 +00:00
|
|
|
$size = (stat("$basedir/$_"))[7];
|
|
|
|
$log = "";
|
|
|
|
if (/-(\d+)/) {
|
|
|
|
$date = $1;
|
2006-01-30 09:56:08 +00:00
|
|
|
if ( -f "$basedir/changes-$date.html") {
|
|
|
|
$log = "<a href=\"daily/changes-$date.html\">Changes done $date</a>";
|
2002-05-29 08:30:36 +00:00
|
|
|
}
|
|
|
|
}
|
2006-01-30 09:56:08 +00:00
|
|
|
print "$log\n";
|
2004-10-01 06:17:18 +00:00
|
|
|
last;
|
2002-05-27 14:22:23 +00:00
|
|
|
}
|