2002-05-27 14:22:23 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
2003-07-25 08:13:16 +00:00
|
|
|
my $basedir = "/home/dast/rockbox-build/daily-build";
|
2002-05-27 14:22:23 +00:00
|
|
|
|
2003-12-04 15:05:21 +00:00
|
|
|
my @list=("player", "recorder", "fmrecorder", "recorderv2", "recorder8mb");
|
2002-05-27 14:22:23 +00:00
|
|
|
|
2003-07-25 08:13:16 +00:00
|
|
|
for(@list) {
|
|
|
|
my $dir = $_;
|
2002-05-27 14:22:23 +00:00
|
|
|
opendir(DIR, "$basedir/$dir") or
|
|
|
|
die "Can't opendir($basedir/$dir)";
|
2003-08-03 23:13:12 +00:00
|
|
|
my @files = sort grep { /^rockbox/ } readdir(DIR);
|
2002-05-27 14:22:23 +00:00
|
|
|
closedir DIR;
|
2003-07-25 08:13:16 +00:00
|
|
|
|
|
|
|
for(@files) {
|
2003-08-03 22:52:58 +00:00
|
|
|
/(20\d+)/;
|
2003-07-25 08:13:16 +00:00
|
|
|
$date{$1}=$1;
|
2002-05-27 14:22:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-12-04 15:05:21 +00:00
|
|
|
print "<table class=rockbox>\n";
|
2002-05-27 14:22:23 +00:00
|
|
|
|
2003-12-04 15:05:21 +00:00
|
|
|
if (0) {
|
|
|
|
print "<tr><th>date</th>";
|
|
|
|
|
|
|
|
for(@list) {
|
|
|
|
print "<th>$_</th>";
|
|
|
|
}
|
2003-07-25 08:13:16 +00:00
|
|
|
}
|
2003-02-03 12:28:28 +00:00
|
|
|
|
2003-07-25 08:13:16 +00:00
|
|
|
for(reverse sort keys %date) {
|
|
|
|
my $d = $_;
|
|
|
|
my $nice = $d;
|
|
|
|
if($d =~ /(\d\d\d\d)(\d\d)(\d\d)/) {
|
|
|
|
$nice = "$1-$2-$3";
|
|
|
|
}
|
|
|
|
print "</tr>\n<tr><td>$nice</td>";
|
|
|
|
|
|
|
|
for(@list) {
|
|
|
|
my $n=0;
|
2003-08-03 23:13:12 +00:00
|
|
|
my $m = $_;
|
2003-07-25 08:13:16 +00:00
|
|
|
print "<td> ";
|
2003-08-03 23:13:12 +00:00
|
|
|
# new-style full zip:
|
|
|
|
if( -f "daily/$m/rockbox-${m}-${d}.zip") {
|
2003-12-04 15:05:21 +00:00
|
|
|
printf "%s<a href=\"daily/$_/rockbox-${m}-${d}.zip\">${m}</a>",
|
2003-07-25 08:13:16 +00:00
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
|
|
|
print "</td>";
|
|
|
|
}
|
|
|
|
print "</tr>\n"
|
|
|
|
}
|
|
|
|
print "</table>\n";
|
2003-03-20 07:32:06 +00:00
|
|
|
|