better error line, return non-zero on errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2607 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5fcce4da58
commit
17cf448f59
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,8 @@ while(<LANG>) {
|
|||
|
||||
if( (($var eq "new") && $value && ($value !~ /^\"(.*)\" *$/)) ||
|
||||
(($var eq "eng") && ($value !~ /^\"(.*)\" *$/)) ) {
|
||||
print "missing quotes on line $line for ".$set{'id'}."\n";
|
||||
print "$input:$line:missing quotes for ".$set{'id'}."\n";
|
||||
$errors++;
|
||||
next;
|
||||
}
|
||||
|
||||
|
@ -101,3 +102,5 @@ MOO
|
|||
|
||||
close(CFILE);
|
||||
close(HFILE);
|
||||
|
||||
exit $errors;
|
||||
|
|
Loading…
Reference in a new issue