summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2008-08-12 14:52:56 +0000
committerJonas Häggqvist <rasher@rasher.dk>2008-08-12 14:52:56 +0000
commit7c535108bf9f216f6c225ae6c6a920199f54a9a4 (patch)
tree97074c6119197faec2b36996d90394a0409d09d4 /tools
parent438e36337cb3ba888d5ac6997de12429e7b9b326 (diff)
downloadrockbox-7c535108bf9f216f6c225ae6c6a920199f54a9a4.tar.gz
rockbox-7c535108bf9f216f6c225ae6c6a920199f54a9a4.tar.bz2
rockbox-7c535108bf9f216f6c225ae6c6a920199f54a9a4.zip
Only print the header if we're running update.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genlang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang
index 3e133cef38..cd153163f5 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -369,7 +369,7 @@ while(<LANG>) {
if($_ =~ /^( *\#|[ \t\n\r]*\z)/) {
# comment or empty line - output it if it's part of the header
- if ($header eq 1) {
+ if ($header and $update) {
print($_);
}
next;