diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-04-03 21:11:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-04-03 21:11:11 +0000 |
commit | c06e7772ff81ed4bbc78377a6e16456456f3e96c (patch) | |
tree | 0eee2026f47d5041461d2a35349f0c2175e97ab0 /tools/buildzip.pl | |
parent | a87203651e35f368bf1d8bca5a846a0b9fb657c1 (diff) | |
download | rockbox-c06e7772ff81ed4bbc78377a6e16456456f3e96c.tar.gz rockbox-c06e7772ff81ed4bbc78377a6e16456456f3e96c.zip |
langv2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9470 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-x | tools/buildzip.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index a7c8fb64bc..81010def07 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl | |||
@@ -17,6 +17,7 @@ my $output="rockbox.zip"; | |||
17 | my $verbose; | 17 | my $verbose; |
18 | my $exe; | 18 | my $exe; |
19 | my $target; | 19 | my $target; |
20 | my $archos; | ||
20 | 21 | ||
21 | while(1) { | 22 | while(1) { |
22 | if($ARGV[0] eq "-r") { | 23 | if($ARGV[0] eq "-r") { |
@@ -31,6 +32,12 @@ while(1) { | |||
31 | shift @ARGV; | 32 | shift @ARGV; |
32 | } | 33 | } |
33 | 34 | ||
35 | elsif($ARGV[0] eq "-t") { | ||
36 | # The target name as used in ARCHOS in the root makefile | ||
37 | $archos=$ARGV[1]; | ||
38 | shift @ARGV; | ||
39 | shift @ARGV; | ||
40 | } | ||
34 | elsif($ARGV[0] eq "-o") { | 41 | elsif($ARGV[0] eq "-o") { |
35 | $output=$ARGV[1]; | 42 | $output=$ARGV[1]; |
36 | shift @ARGV; | 43 | shift @ARGV; |
@@ -72,8 +79,8 @@ sub buildlangs { | |||
72 | for(@files) { | 79 | for(@files) { |
73 | my $output = $_; | 80 | my $output = $_; |
74 | $output =~ s/(.*)\.lang/$1.lng/; | 81 | $output =~ s/(.*)\.lang/$1.lng/; |
75 | print "lang $_\n" if($verbose); | 82 | print "$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -b=$outputlang/$output $dir/$_\n" if($verbose); |
76 | system ("$ROOT/tools/binlang $dir/english.lang $dir/$_ $outputlang/$output >/dev/null 2>&1"); | 83 | system ("$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -b=$outputlang/$output $dir/$_ >/dev/null 2>&1"); |
77 | } | 84 | } |
78 | } | 85 | } |
79 | 86 | ||