Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-03 04:35:54 +0400
committerJo-Philipp Wich <jow@openwrt.org>2012-04-03 04:35:54 +0400
commit3501cbea52d17bc19dea2bc90312ba8954d938a1 (patch)
tree87fbedfaef5320d297358948ea542717d465b224 /build
parentee09d98cd5abe75494b9f5cd9db4a2e2cb0b3c8b (diff)
build: rework checks in i18n-scan.pl
Diffstat (limited to 'build')
-rwxr-xr-xbuild/i18n-scan.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl
index 1243545ac5..781ac6480e 100755
--- 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 =~ /^['"]/ )
{
- while( defined $sub && length($sub) > 0 )
+ while( defined $sub )
{
( $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;
}
+ else
+ {
+ undef $sub;
+ }
}
}
elsif( $code =~ /^(\[=*\[)/ )