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.zip rockbox-c06e7772ff81ed4bbc78377a6e16456456f3e96c.tar.gz rockbox-c06e7772ff81ed4bbc78377a6e16456456f3e96c.tar.bz2 rockbox-c06e7772ff81ed4bbc78377a6e16456456f3e96c.tar.xz | |
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 a7c8fb6..81010de 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -17,6 +17,7 @@ my $output="rockbox.zip"; my $verbose; my $exe; my $target; +my $archos; while(1) { if($ARGV[0] eq "-r") { @@ -31,6 +32,12 @@ while(1) { shift @ARGV; } + elsif($ARGV[0] eq "-t") { + # The target name as used in ARCHOS in the root makefile + $archos=$ARGV[1]; + shift @ARGV; + shift @ARGV; + } elsif($ARGV[0] eq "-o") { $output=$ARGV[1]; shift @ARGV; @@ -72,8 +79,8 @@ sub buildlangs { for(@files) { my $output = $_; $output =~ s/(.*)\.lang/$1.lng/; - print "lang $_\n" if($verbose); - system ("$ROOT/tools/binlang $dir/english.lang $dir/$_ $outputlang/$output >/dev/null 2>&1"); + print "$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -b=$outputlang/$output $dir/$_\n" if($verbose); + system ("$ROOT/tools/genlang -e=$dir/english.lang -t=$archos -b=$outputlang/$output $dir/$_ >/dev/null 2>&1"); } } |