blob: 4ddcf7e55b5cdad72a99d9e4065c16ca3f4d2d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#!/usr/bin/perl
my $basedir = "/home/dast/rockbox-build/daily-build";
my @list=("player", "recorder", "fmrecorder", "recorder8mb");
for(@list) {
my $dir = $_;
opendir(DIR, "$basedir/$dir") or
die "Can't opendir($basedir/$dir)";
my @files = sort grep { /^rockbox2/ } readdir(DIR);
closedir DIR;
for(@files) {
/(\d+)/;
$date{$1}=$1;
}
}
print "<table class=rockbox><tr><th>date</th>";
for(@list) {
print "<th>$_</th>";
}
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;
print "<td> ";
if( -f "daily/$_/rockbox${d}.mod") {
print "<a href=\"daily/$_/rockbox${d}.mod\">mod</a>";
$n++;
}
if( -f "daily/$_/rockbox${d}.ajz") {
printf "%s<a href=\"daily/$_/rockbox${d}.ajz\">ajz</a>",
$n?", ":"";
$n++;
}
if( -f "daily/$_/rocks${d}.zip") {
printf "%s<a href=\"daily/$_/rocks${d}.zip\">rocks</a>",
$n?", ":"";
$n++;
}
if( -f "daily/$_/rockbox-${d}.zip") {
printf "%s<a href=\"daily/$_/rockbox-${d}.zip\">full</a>",
$n?", ":"";
$n++;
}
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";
|