From ca61b5b948374510120708d2db95a8ea2d9303df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=A4ggqvist?= Date: Sun, 20 Jul 2008 23:12:03 +0000 Subject: [PATCH] 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 --- tools/buildzip.pl | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 973163de08..72136fc1db 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -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;