Further speedup: call convbdf once, rather than once for each font.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18110 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonas Häggqvist 2008-07-20 23:12:03 +00:00
parent 6539b434aa
commit ca61b5b948

View file

@ -206,22 +206,12 @@ sub buildzip {
if($fonts) {
mkdir ".rockbox/fonts", 0777;
chdir(".rockbox/fonts");
$cmd = "$ROOT/tools/convbdf -f $ROOT/fonts/*bdf >/dev/null 2>&1";
print($cmd);
system($cmd);
chdir("../../");
opendir(DIR, "$ROOT/fonts") || die "can't open dir fonts";
my @fonts = grep { /\.bdf$/ && -f "$ROOT/fonts/$_" } readdir(DIR);
closedir DIR;
for(@fonts) {
my $f = $_;
print "FONT: $f\n" if($verbose);
my $o = $f;
$o =~ s/\.bdf/\.fnt/;
my $cmd ="$ROOT/tools/convbdf -f -o \".rockbox/fonts/$o\" \"$ROOT/fonts/$f\" >/dev/null 2>&1";
print "CMD: $cmd\n" if($verbose);
`$cmd`;
}
if($fonts < 2) {
# fonts-only package, return
return;