diff options
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-x | tools/buildzip.pl | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 0463132ec4..3ddb0163d3 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -178,9 +178,18 @@ sub buildzip { } mkdir ".rockbox/wps", 0777; + mkdir ".rockbox/codepages", 0777; + + if($bitmap) { + system("$ROOT/tools/codepages"); + } + else { + system("$ROOT/tools/codepages -m"); + } + $c = 'find . -name "*.cp" ! -empty -exec mv {} .rockbox/codepages/ \; >/dev/null 2>&1'; + `$c`; if($bitmap) { - mkdir ".rockbox/codepages", 0777; mkdir ".rockbox/codecs", 0777; mkdir ".rockbox/themes", 0777; if($depth > 1) { @@ -190,10 +199,6 @@ sub buildzip { my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \; 2>/dev/null'; `$c`; - system("$ROOT/tools/codepages"); - $c = 'find . -name "*.cp" ! -empty -exec mv {} .rockbox/codepages/ \; >/dev/null 2>&1'; - `$c`; - my @call = `find .rockbox/codecs -type f 2>/dev/null`; if(!$call[0]) { # no codec was copied, remove directory again |