#!/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 { /^rockbox/ } readdir(DIR); closedir DIR; for(@files) { /(20\d+)/; $date{$1}=$1; } } print "
date | "; for(@list) { print "$_ | "; } 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 "
---|---|
$nice | "; for(@list) { my $n=0; my $m = $_; print ""; # old mod if( -f "daily/$_/rockbox${d}.mod") { print "mod"; $n++; } # new mod if( -f "daily/$_/rockbox-$m-${d}.mod") { print "mod"; $n++; } # old ajz if( -f "daily/$_/rockbox${d}.ajz") { printf "%sajz", $n?", ":""; $n++; } # new ajz if( -f "daily/$m/rockbox-$m-${d}.ajz") { printf "%sajz", $n?", ":""; $n++; } if( -f "daily/$_/rocks${d}.zip") { printf "%srocks", $n?", ":""; $n++; } # old-style full zip if( -f "daily/$_/rockbox-${d}.zip") { printf "%sfull", $n?", ":""; $n++; } # new-style full zip: if( -f "daily/$m/rockbox-${m}-${d}.zip") { printf "%sfull", $n?", ":""; $n++; } if( -f "daily/$_/rockbox${d}.ucl") { printf "%sucl", $n?", ":""; $n++; } print " | "; } print "