#!/usr/bin/perl my $basedir = "/home/dast/rockbox-build/daily-build"; my @list=("player", "recorder", "fmrecorder", "recorderv2", "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 "\n"; if (0) { print ""; 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 "\n"; for(@list) { my $n=0; my $m = $_; print ""; } print "\n" } print "
date$_
$nice "; # new-style full zip: if( -f "daily/$m/rockbox-${m}-${d}.zip") { printf "%s${m}", $n?", ":""; $n++; } print "
\n";