build: fix po->lua conversion, last po entry was always missing
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 10 Jun 2009 23:04:07 +0000 (23:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 10 Jun 2009 23:04:07 +0000 (23:04 +0000)
build/i18n-po2lua.pl

index 8466fd9890c61cb559825c34fdce947864e62a58..c57198fd5cdf515178d28198262e03797dd890fb 100755 (executable)
@@ -31,7 +31,7 @@ if( open F, "find $source_dir -type f -name '*.po' |" )
 
                                my ( $k, $v );
 
-                               while( chomp( my $line = readline L ) )
+                               while( chomp( my $line = readline L ) || ( defined($k) && defined($v) ) )
                                {
                                        if( $line =~ /^msgid "(.+)"/ )
                                        {