summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-14 08:49:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-14 08:49:25 +0000
commit17cf448f5927a34d4370ba618027947721a0bd36 (patch)
tree3f8804d69534622e7919e4b4f0440475b1b065ff /tools
parent5fcce4da583b2524c93febefb0e2962a889c9ae1 (diff)
downloadrockbox-17cf448f5927a34d4370ba618027947721a0bd36.tar.gz
rockbox-17cf448f5927a34d4370ba618027947721a0bd36.tar.bz2
rockbox-17cf448f5927a34d4370ba618027947721a0bd36.zip
better error line, return non-zero on errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2607 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genlang5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang
index 659e5f44e1..9c7f8949c1 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -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;