diff options
author | Jonas Häggqvist <rasher@rasher.dk> | 2009-02-27 20:00:45 +0000 |
---|---|---|
committer | Jonas Häggqvist <rasher@rasher.dk> | 2009-02-27 20:00:45 +0000 |
commit | 6d638922e17162c4907dc1e049eecee8a6449ecd (patch) | |
tree | c4788e0c58ba81b9aed5cee3ddae6a4c92e84883 | |
parent | 1ab0a50bc1df00602ac66ebbc35b9efc0fdf36a2 (diff) | |
download | rockbox-6d638922e17162c4907dc1e049eecee8a6449ecd.tar.gz rockbox-6d638922e17162c4907dc1e049eecee8a6449ecd.zip |
Make genlang output errors on STDERR. FS#9668 by Tomer Shalev.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20130 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | tools/genlang | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/genlang b/tools/genlang index 21cef9966b..9f9e904312 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -89,29 +89,29 @@ my $voiceout = $o; | |||
89 | my $check = ($binary?1:0) + ($prefix?1:0) + ($update?1:0) + ($voiceout?1:0) + ($sortfile?1:0); | 89 | my $check = ($binary?1:0) + ($prefix?1:0) + ($update?1:0) + ($voiceout?1:0) + ($sortfile?1:0); |
90 | 90 | ||
91 | if($check > 1) { | 91 | if($check > 1) { |
92 | print "Please use only one of -p, -u, -o, -b and -s\n"; | 92 | print STDERR "Please use only one of -p, -u, -o, -b and -s\n"; |
93 | exit; | 93 | exit; |
94 | } | 94 | } |
95 | if(!$check) { | 95 | if(!$check) { |
96 | print "Please use at least one of -p, -u, -o, -b and -s\n"; | 96 | print STDERR "Please use at least one of -p, -u, -o, -b and -s\n"; |
97 | exit; | 97 | exit; |
98 | } | 98 | } |
99 | 99 | ||
100 | 100 | ||
101 | if(($binary || $update || $voiceout || $sortfile) && !$english) { | 101 | if(($binary || $update || $voiceout || $sortfile) && !$english) { |
102 | print "Please use -e too when you use -b, -o, -u or -s\n"; | 102 | print STDERR "Please use -e too when you use -b, -o, -u or -s\n"; |
103 | exit; | 103 | exit; |
104 | } | 104 | } |
105 | 105 | ||
106 | my $target_id = $i; | 106 | my $target_id = $i; |
107 | if($binary && !$target_id) { | 107 | if($binary && !$target_id) { |
108 | print "Please specify a target id number (with -i)!\n"; | 108 | print STDERR "Please specify a target id number (with -i)!\n"; |
109 | exit; | 109 | exit; |
110 | } | 110 | } |
111 | 111 | ||
112 | my $target = $t; | 112 | my $target = $t; |
113 | if(!$target && !$update && !$sortfile) { | 113 | if(!$target && !$update && !$sortfile) { |
114 | print "Please specify a target (with -t)!\n"; | 114 | print STDERR "Please specify a target (with -t)!\n"; |
115 | exit; | 115 | exit; |
116 | } | 116 | } |
117 | my $verbose=$v; | 117 | my $verbose=$v; |