summaryrefslogtreecommitdiff
path: root/tools/buildzip.pl
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-08-05 19:19:39 +0000
committerNils Wallménius <nils@rockbox.org>2007-08-05 19:19:39 +0000
commitb3113674819cd8daf44750d129c5d8298e830df0 (patch)
treeebc7ec9e096e309ef79834802eed28ff9c22fd41 /tools/buildzip.pl
parente70f7f4ca857e9e88a6e076360b6c9c235d7739b (diff)
downloadrockbox-b3113674819cd8daf44750d129c5d8298e830df0.tar.gz
rockbox-b3113674819cd8daf44750d129c5d8298e830df0.zip
*** Lang v2 cleanup (FS#6574) ***
1) Introduces apps/features.txt that controls which strings are included for each target based on defines. 2) .lng and .voice files are now target specific and the format versions of both these file types have been bumped, which means that new voice files are needed. 3) Use the 'features' mechanism to exclude strings for targets that didn't use them. 4) Delete unused and deprecated and duplicated strings, sort strings in english.lang Some string IDs were changed so translations will be slightly worse than before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14198 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-xtools/buildzip.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 8c78b82170..c3f6ccc3d4 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -37,6 +37,12 @@ while(1) {
37 shift @ARGV; 37 shift @ARGV;
38 shift @ARGV; 38 shift @ARGV;
39 } 39 }
40 elsif($ARGV[0] eq "-i") {
41 # The target id name as used in TARGET_ID in the root makefile
42 $target_id=$ARGV[1];
43 shift @ARGV;
44 shift @ARGV;
45 }
40 elsif($ARGV[0] eq "-o") { 46 elsif($ARGV[0] eq "-o") {
41 $output=$ARGV[1]; 47 $output=$ARGV[1];
42 shift @ARGV; 48 shift @ARGV;
@@ -158,8 +164,8 @@ sub buildlangs {
158 for(@files) { 164 for(@files) {
159 my $output = $_; 165 my $output = $_;
160 $output =~ s/(.*)\.lang/$1.lng/; 166 $output =~ s/(.*)\.lang/$1.lng/;
161 print "$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -b=$outputlang/$output $dir/$_\n" if($verbose); 167 print "$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -i=$target_id -b=$outputlang/$output $dir/$_\n" if($verbose);
162 system ("$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -b=$outputlang/$output $dir/$_ >/dev/null 2>&1"); 168 system ("$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -i=$target_id -b=$outputlang/$output $dir/$_ >/dev/null 2>&1");
163 } 169 }
164} 170}
165 171