Neo has a processor too...
[kugel-rb.git] / www / dailysrc.pl
blobd4e53ea9229c929cf6ba13d8c463f837a4b50ac1
1 #!/usr/bin/perl
3 $basedir = "/home/dast/rockbox-build/daily-build/";
5 opendir(DIR, $basedir) or
6 die "Can't opendir($basedir)";
7 @tarballs = sort grep { /^rockbox-daily-/ } readdir(DIR);
8 closedir DIR;
10 print "<ul>\n";
12 for ( sort {$b <=> $a} @tarballs ) {
13 $size = (stat("$basedir/$_"))[7];
14 $log = "";
15 if (/-(\d+)/) {
16 $date = $1;
17 if ( -f "$basedir/changes-$date.txt") {
18 $lines = `grep "Number of changes:" $basedir/changes-$date.txt | cut "-d " -f4` + 0;
19 $log = "<a href=\"daily/changes-$date.html\">Changelog</a> <small>($lines changes)</small>";
22 print "<li><a href=\"daily/$_\">$_</a> <small>($size bytes)</small> $log\n";
25 print "</ul>\n";