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-07-25 08:13:16 +00:00
|
|
|
my @list=("player", "recorder", "fmrecorder", "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-07-25 08:13:16 +00:00
|
|
|
print "<table class=rockbox><tr><th>date</th>";
|
2002-05-27 14:22:23 +00:00
|
|
|
|
2003-07-25 08:13:16 +00:00
|
|
|
for(@list) {
|
|
|
|
print "<th>$_</th>";
|
|
|
|
}
|
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
|
|
|
# old mod
|
2003-07-25 08:13:16 +00:00
|
|
|
if( -f "daily/$_/rockbox${d}.mod") {
|
|
|
|
print "<a href=\"daily/$_/rockbox${d}.mod\">mod</a>";
|
|
|
|
$n++;
|
|
|
|
}
|
2003-08-03 23:13:12 +00:00
|
|
|
# new mod
|
|
|
|
if( -f "daily/$_/rockbox-$m-${d}.mod") {
|
|
|
|
print "<a href=\"daily/$m/rockbox-$m-${d}.mod\">mod</a>";
|
|
|
|
$n++;
|
|
|
|
}
|
|
|
|
# old ajz
|
|
|
|
if( -f "daily/$_/rockbox${d}.ajz") {
|
2003-07-25 08:13:16 +00:00
|
|
|
printf "%s<a href=\"daily/$_/rockbox${d}.ajz\">ajz</a>",
|
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
2003-08-03 23:13:12 +00:00
|
|
|
# new ajz
|
|
|
|
if( -f "daily/$m/rockbox-$m-${d}.ajz") {
|
|
|
|
printf "%s<a href=\"daily/$m/rockbox-$m-${d}.ajz\">ajz</a>",
|
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
2003-07-25 08:13:16 +00:00
|
|
|
if( -f "daily/$_/rocks${d}.zip") {
|
|
|
|
printf "%s<a href=\"daily/$_/rocks${d}.zip\">rocks</a>",
|
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
2003-08-03 23:13:12 +00:00
|
|
|
# old-style full zip
|
2003-07-25 08:13:16 +00:00
|
|
|
if( -f "daily/$_/rockbox-${d}.zip") {
|
|
|
|
printf "%s<a href=\"daily/$_/rockbox-${d}.zip\">full</a>",
|
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
2003-08-03 23:13:12 +00:00
|
|
|
# new-style full zip:
|
|
|
|
if( -f "daily/$m/rockbox-${m}-${d}.zip") {
|
|
|
|
printf "%s<a href=\"daily/$_/rockbox-${m}-${d}.zip\">full</a>",
|
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
2003-07-25 08:13:16 +00:00
|
|
|
if( -f "daily/$_/rockbox${d}.ucl") {
|
|
|
|
printf "%s<a href=\"daily/$_/rockbox${d}.ucl\">ucl</a>",
|
|
|
|
$n?", ":"";
|
|
|
|
$n++;
|
|
|
|
}
|
|
|
|
print "</td>";
|
|
|
|
}
|
|
|
|
print "</tr>\n"
|
|
|
|
}
|
|
|
|
print "</table>\n";
|
2003-03-20 07:32:06 +00:00
|
|
|
|