mirror of
https://github.com/openwrt/luci.git
synced 2026-10-12 02:57:06 +04:00
build: modify zoneinfo2lua.pl to handle luci-lua-runtime
Modify zoneinfo2lua.pl script to handle the old lua timezone files that have been moved from luci-base to luci-lua-runtime. (modern LuCI uses ucode based timezone files, so this is a fallback for old lua based apps.) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
1 parent
b8db72af20
commit
95a2399f91
1 file changed
+1
-1
@@ -13,7 +13,7 @@ use strict;
|
||||
my %TZ;
|
||||
|
||||
my $tzdin = $ARGV[0] || "/usr/share/zoneinfo";
|
||||
my $tzdout = $ARGV[1] || "./modules/luci-base/luasrc/sys/zoneinfo";
|
||||
my $tzdout = $ARGV[1] || "./modules/luci-lua-runtime/luasrc/sys/zoneinfo";
|
||||
|
||||
local $/ = "\012";
|
||||
open( ZTAB, "< $tzdin/zone.tab" ) || die "open($tzdin/zone.tab): $!";
|
||||
|
||||
Reference in new issue
Block a user