summaryrefslogtreecommitdiff
path: root/tools/buildzip.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-17 23:24:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-17 23:24:28 +0000
commit9425cf65489776cfaf2d4c5472d4693dcd158aa6 (patch)
treec38f22bde0df181061b054cdfb25b7fef5a29fa5 /tools/buildzip.pl
parente2f5f21e5bf5b8e43f3eb130d8a282a5a8c62ac6 (diff)
downloadrockbox-9425cf65489776cfaf2d4c5472d4693dcd158aa6.tar.gz
rockbox-9425cf65489776cfaf2d4c5472d4693dcd158aa6.zip
eeek, revert the FS#8482 commit again as it broke the bootloaders and the
generated size wasn't actually used yet! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16339 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-xtools/buildzip.pl35
1 files changed, 33 insertions, 2 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 4faa38ac54..4c21ae819f 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -154,6 +154,30 @@ sub filesize {
154 return $size; 154 return $size;
155} 155}
156 156
157sub 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
157sub buildzip { 181sub buildzip {
158 my ($zip, $image, $fonts)=@_; 182 my ($zip, $image, $fonts)=@_;
159 183
@@ -389,8 +413,15 @@ STOP
389 # and the info file 413 # and the info file
390 system("cp rockbox-info.txt .rockbox/"); 414 system("cp rockbox-info.txt .rockbox/");
391 415
392 # copy the already built lng files 416 # now copy the file made for reading on the unit:
393 `cp apps/lang/*lng .rockbox/langs/` 417 #if($notplayer) {
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");
394 425
395} 426}
396 427