diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-02-18 12:17:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-02-18 12:17:34 +0000 |
commit | 8ebbe99328248d45f3937c4f15f936d5d36f4a58 (patch) | |
tree | 58dfa9555171528528912a8cb6109d351ea767eb /tools/buildzip.pl | |
parent | 43141cbfdb247b7e64bc3d3d5732f43732d59da0 (diff) | |
download | rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.tar.gz rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.zip |
FS#8482 take two. Make the language files built first, so that the largest
size can be used as buffer size for languages. Work to this also contributed
by Jonas Haggqvist.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16343 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-x | tools/buildzip.pl | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 4c21ae819f..4faa38ac54 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl | |||
@@ -154,30 +154,6 @@ sub filesize { | |||
154 | return $size; | 154 | return $size; |
155 | } | 155 | } |
156 | 156 | ||
157 | sub buildlangs { | ||
158 | my ($outputlang)=@_; | ||
159 | my $dir = "$ROOT/apps/lang"; | ||
160 | opendir(DIR, $dir); | ||
161 | my @files = grep { /\.lang$/ } readdir(DIR); | ||
162 | closedir(DIR); | ||
163 | |||
164 | # Exclude some bad languages (uncomment and adjust in case of release | ||
165 | # and/or End Times) | ||
166 | # @files = grep(!/(afrikaans|hindi|slovenscina|turkce)\.lang/, @files); | ||
167 | |||
168 | # Exclude more languages on the player which won't work on charcell display | ||
169 | if ($archos =~ /^"?player:/ ) { | ||
170 | @files = grep(!/(chinese-simp|chinese-trad|hindi|japanese|korean|thai)\.lang/, @files); | ||
171 | } | ||
172 | |||
173 | for(@files) { | ||
174 | my $output = $_; | ||
175 | $output =~ s/(.*)\.lang/$1.lng/; | ||
176 | print "$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -i=$target_id -b=$outputlang/$output $dir/$_\n" if($verbose); | ||
177 | system ("$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -i=$target_id -b=$outputlang/$output $dir/$_ >/dev/null 2>&1"); | ||
178 | } | ||
179 | } | ||
180 | |||
181 | sub buildzip { | 157 | sub buildzip { |
182 | my ($zip, $image, $fonts)=@_; | 158 | my ($zip, $image, $fonts)=@_; |
183 | 159 | ||
@@ -413,15 +389,8 @@ STOP | |||
413 | # and the info file | 389 | # and the info file |
414 | system("cp rockbox-info.txt .rockbox/"); | 390 | system("cp rockbox-info.txt .rockbox/"); |
415 | 391 | ||
416 | # now copy the file made for reading on the unit: | 392 | # copy the already built lng files |
417 | #if($notplayer) { | 393 | `cp apps/lang/*lng .rockbox/langs/` |
418 | # `cp $webroot/docs/Help-JBR.txt .rockbox/docs/`; | ||
419 | #} | ||
420 | #else { | ||
421 | # `cp $webroot/docs/Help-Stu.txt .rockbox/docs/`; | ||
422 | #} | ||
423 | |||
424 | buildlangs(".rockbox/langs"); | ||
425 | 394 | ||
426 | } | 395 | } |
427 | 396 | ||