2002-05-27 14:22:23 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
2004-10-01 06:17:18 +00:00
|
|
|
require "rockbox.pm";
|
|
|
|
|
2003-07-25 08:13:16 +00:00
|
|
|
my $basedir = "/home/dast/rockbox-build/daily-build";
|
2002-05-27 14:22:23 +00:00
|
|
|
|
2006-01-30 09:56:08 +00:00
|
|
|
my @list=("player",
|
|
|
|
"recorder", "recorder8mb",
|
|
|
|
"fmrecorder", "fmrecorder8mb",
|
|
|
|
"recorderv2",
|
|
|
|
"ondiofm", "ondiosp",
|
|
|
|
"h100", "h120", "h300", "ipodcolor", "ipodnano",
|
|
|
|
|
|
|
|
# install and source are special cases
|
|
|
|
"install", "source");
|
2002-05-27 14:22:23 +00:00
|
|
|
|
2003-07-25 08:13:16 +00:00
|
|
|
for(@list) {
|
|
|
|
my $dir = $_;
|
2004-10-01 06:17:18 +00:00
|
|
|
opendir(DIR, "$basedir/$dir") or next;
|
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-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";
|
|
|
|
}
|
2006-01-30 09:56:08 +00:00
|
|
|
print "<table class=rockbox cellpadding=\"0\"><tr valign=top>\n";
|
2004-10-01 06:17:18 +00:00
|
|
|
|
|
|
|
$color1 -= 0x18;
|
|
|
|
$color2 -= 0x18;
|
|
|
|
$color3 -= 0x18;
|
2003-07-25 08:13:16 +00:00
|
|
|
|
2006-01-30 09:56:08 +00:00
|
|
|
my $count = 0;
|
|
|
|
my $split = int((scalar @list) / 2);
|
|
|
|
my $x = 0;
|
|
|
|
my @head;
|
|
|
|
|
|
|
|
foreach $t (@list) {
|
|
|
|
my $show = $t;
|
|
|
|
$show =~ s/recorder/rec/;
|
|
|
|
# Remove the comment below to get long names
|
|
|
|
# $show = $longname{$t};
|
|
|
|
$head[$x] .= "<th>$show</th>\n";
|
|
|
|
$count++;
|
|
|
|
if ($count == $split) {
|
|
|
|
$x++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print "$head[0]</tr><tr>\n";
|
|
|
|
|
|
|
|
$count = 0;
|
2003-07-25 08:13:16 +00:00
|
|
|
for(@list) {
|
2003-08-03 23:13:12 +00:00
|
|
|
my $m = $_;
|
2006-01-30 09:56:08 +00:00
|
|
|
printf "<td><img alt=\"$m\" src=\"$model{$m}\"><br>";
|
2003-08-03 23:13:12 +00:00
|
|
|
# new-style full zip:
|
2006-01-30 09:56:08 +00:00
|
|
|
my $file = "rockbox-${m}-${d}.zip";
|
|
|
|
if($m eq "source") {
|
|
|
|
$file = "rockbox-daily-${d}.tar.gz";
|
|
|
|
}
|
|
|
|
elsif($m eq "install") {
|
|
|
|
$file = "Rockbox-${d}-install.exe";
|
2003-07-25 08:13:16 +00:00
|
|
|
}
|
2006-01-30 09:56:08 +00:00
|
|
|
if( -f "$basedir/$m/$file") {
|
|
|
|
printf "<a href=\"/daily/$_/$file\">latest</a>",
|
|
|
|
}
|
|
|
|
print "<p><a href=\"/dl.cgi?bin=$_\">older</a></td>\n";
|
|
|
|
|
|
|
|
$count++;
|
|
|
|
if ($count == $split) {
|
|
|
|
print "</tr><tr>$head[1]</tr><tr>\n";
|
|
|
|
}
|
2003-07-25 08:13:16 +00:00
|
|
|
}
|
2004-10-01 06:17:18 +00:00
|
|
|
print "</tr>\n";
|
|
|
|
last;
|
2003-07-25 08:13:16 +00:00
|
|
|
}
|
|
|
|
print "</table>\n";
|
2003-03-20 07:32:06 +00:00
|
|
|
|