summaryrefslogtreecommitdiffstats
path: root/wps/wpsbuild.pl
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-01-21 00:21:40 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-01-21 00:21:40 +0000
commitc05fef3d71795770c000b29d588a407a8606e75e (patch)
treedce1a9a5ebd0769ae7e29ed45eef2bcc34645ea2 /wps/wpsbuild.pl
parent31b6eb57b01b4e46120ea311d8d32bcebb15ecb1 (diff)
downloadrockbox-c05fef3d71795770c000b29d588a407a8606e75e.tar.gz
rockbox-c05fef3d71795770c000b29d588a407a8606e75e.zip
Change build script to copy any fonts needed for build in themes in preperation for commiting a default theme. Maybe not the best use of space, but theres only 2 built in themes with fonts so it makes little difference.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16125 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-xwps/wpsbuild.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index ecc2993353..c109096139 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -113,6 +113,16 @@ sub copybackdrop {
`cp $ROOT/backdrops/$2 $1`;
}
+sub copythemefont {
+ #copy the font specified by the theme
+
+ $o=$font;
+ $o =~ s/\.fnt/\.bdf/;
+ `mkdir .rockbox/fonts/ >/dev/null 2>&1`;
+ $cmd ="$ROOT/tools/convbdf -f -o \".rockbox/fonts/$font\" \"$ROOT/fonts/$o\" ";
+ `$cmd`;
+}
+
sub copywps {
# we assume that we copy the WPS files from the same dir the WPSLIST
# file is located in
@@ -367,6 +377,7 @@ while(<WPS>) {
}
elsif($l =~ /^Font\.${main_width}x${main_height}x$main_depth: (.*)/i) {
$font = $1;
+ copythemefont();
}
elsif($l =~ /^Statusbar: (.*)/i) {
$statusbar = $1;