When we read the year from the RTC, it can be so totally messed up so that
[kugel-rb.git] / www / dailymod.pl
blob92a98bc7e4d4e67d49611e48cb88a06d204b5f4b
1 #!/usr/bin/perl
3 $basedir = "/home/dast/rockbox-build/daily-build";
5 sub list {
6 $dir = shift @_;
8 opendir(DIR, "$basedir/$dir") or
9 die "Can't opendir($basedir/$dir)";
10 @tarballs = sort grep { /^a/ } readdir(DIR);
11 closedir DIR;
13 print "<ul>\n";
14 for ( @tarballs ) {
15 print "<li><a href=\"daily/$dir/$_\">$_</a>\n";
17 print "</ul>\n";
20 print "<table class=rockbox><tr><th>player</th><th>recorder</th><th>fm recorder</th><th>8MB recorder</th></tr>\n";
21 print "<tr><td>\n";
22 &list("player");
24 print "</td><td>\n";
25 &list("recorder");
27 print "</td><td>\n";
28 &list("fmrecorder");
30 print "</td><td>\n";
31 &list("recorder8mb");
33 print "</td></tr></table>\n";