projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ee09d98
)
build: rework checks in i18n-scan.pl
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 Apr 2012 00:35:54 +0000
(
00:35
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 Apr 2012 00:35:54 +0000
(
00:35
+0000)
build/i18n-scan.pl
patch
|
blob
|
history
diff --git
a/build/i18n-scan.pl
b/build/i18n-scan.pl
index
1243545
..
781ac64
100755
(executable)
--- a/
build/i18n-scan.pl
+++ b/
build/i18n-scan.pl
@@
-60,7
+60,7
@@
if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
if( $code =~ /^['"]/ )
{
if( $code =~ /^['"]/ )
{
- while( defined $sub
&& length($sub) > 0
)
+ while( defined $sub )
{
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
{
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
@@
-68,6
+68,10
@@
if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
{
$res .= substr $sub, 1, length($sub) - 2;
}
{
$res .= substr $sub, 1, length($sub) - 2;
}
+ else
+ {
+ undef $sub;
+ }
}
}
elsif( $code =~ /^(\[=*\[)/ )
}
}
elsif( $code =~ /^(\[=*\[)/ )