build: zoneinfo2lua.pl: rework script to accommodate split tzdata.lua and tzoffset...
[project/luci.git] / build / i18n-scan.pl
index a31952bbbc840468104b48bf1d14dce043ea4718..9edb529ef62e9e6750f92a751dd19972efafb4d3 100755 (executable)
@@ -24,6 +24,7 @@ sub dec_lua_str
 sub dec_tpl_str
 {
        my $s = shift;
+       $s =~ s/-$//;
        $s =~ s/[\s\n]+/ /g;
        $s =~ s/^ //;
        $s =~ s/ $//;
@@ -31,7 +32,7 @@ sub dec_tpl_str
 }
 
 
-if( open F, "find @ARGV -type f '(' -name '*.htm' -or -name '*.lua' ')' |" )
+if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
 {
        while( defined( my $file = readline F ) )
        {