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
This commit is contained in:
parent
31b6eb57b0
commit
c05fef3d71
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue