summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2008-07-20 23:12:03 +0000
committerJonas Häggqvist <rasher@rasher.dk>2008-07-20 23:12:03 +0000
commitca61b5b948374510120708d2db95a8ea2d9303df (patch)
tree44820e376db32165d6f2784747d52662f621e531 /tools
parent6539b434aa66b9b98568fa7bf466408eb770b209 (diff)
downloadrockbox-ca61b5b948374510120708d2db95a8ea2d9303df.tar.gz
rockbox-ca61b5b948374510120708d2db95a8ea2d9303df.tar.bz2
rockbox-ca61b5b948374510120708d2db95a8ea2d9303df.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl20
1 files 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;