blob: 71f49c8423254f1127e6bf26e05dcb6e4cf2a37e (
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
|
#!/usr/bin/perl
$basedir = "/home/dast/rockbox-build/daily-build/";
opendir(DIR, $basedir) or
die "Can't opendir($basedir)";
@tarballs = sort grep { /^rockbox-daily-/ } readdir(DIR);
closedir DIR;
print "<ul>\n";
for ( @tarballs ) {
$size = (stat("$basedir/$_"))[7];
$log = "";
if (/-(\d+)/) {
$date = $1;
if ( -f "$basedir/changes-$date.txt") {
$log = "<a href=\"daily/changes-$date.txt\">Changelog</a>";
}
elsif ( -f "$basedir/changes-$date.log") {
$log = "<a href=\"daily/changes-$date.log\">Changelog</a>";
}
}
print "<li><a href=\"daily/$_\">$_</a> ($size bytes) $log\n";
}
print "</ul>\n";
|