#!/usr/bin/perl $basedir = "/home/dast/rockbox-build/daily-build"; sub list { $dir = shift @_; opendir(DIR, "$basedir/$dir") or die "Can't opendir($basedir/$dir)"; @tarballs = sort grep { /^a/ } readdir(DIR); closedir DIR; print "\n"; } print "\n"; print "
playerrecorderfm recorder8MB recorder
\n"; &list("player"); print "\n"; &list("recorder"); print "\n"; &list("fmrecorder"); print "\n"; &list("recorder8mb"); print "
\n";