mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
1ab0a50bc1
commit
6d638922e1
1 changed files with 5 additions and 5 deletions
|
@ -89,29 +89,29 @@ my $voiceout = $o;
|
||||||
my $check = ($binary?1:0) + ($prefix?1:0) + ($update?1:0) + ($voiceout?1:0) + ($sortfile?1:0);
|
my $check = ($binary?1:0) + ($prefix?1:0) + ($update?1:0) + ($voiceout?1:0) + ($sortfile?1:0);
|
||||||
|
|
||||||
if($check > 1) {
|
if($check > 1) {
|
||||||
print "Please use only one of -p, -u, -o, -b and -s\n";
|
print STDERR "Please use only one of -p, -u, -o, -b and -s\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if(!$check) {
|
if(!$check) {
|
||||||
print "Please use at least one of -p, -u, -o, -b and -s\n";
|
print STDERR "Please use at least one of -p, -u, -o, -b and -s\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(($binary || $update || $voiceout || $sortfile) && !$english) {
|
if(($binary || $update || $voiceout || $sortfile) && !$english) {
|
||||||
print "Please use -e too when you use -b, -o, -u or -s\n";
|
print STDERR "Please use -e too when you use -b, -o, -u or -s\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $target_id = $i;
|
my $target_id = $i;
|
||||||
if($binary && !$target_id) {
|
if($binary && !$target_id) {
|
||||||
print "Please specify a target id number (with -i)!\n";
|
print STDERR "Please specify a target id number (with -i)!\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $target = $t;
|
my $target = $t;
|
||||||
if(!$target && !$update && !$sortfile) {
|
if(!$target && !$update && !$sortfile) {
|
||||||
print "Please specify a target (with -t)!\n";
|
print STDERR "Please specify a target (with -t)!\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
my $verbose=$v;
|
my $verbose=$v;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue