build: modify zoneinfo2lua.pl to handle luci-lua-runtime
authorHannu Nyman <redacted>
Thu, 4 Jun 2026 18:32:48 +0000 (21:32 +0300)
committerHannu Nyman <redacted>
Thu, 4 Jun 2026 18:32:48 +0000 (21:32 +0300)
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 <redacted>
build/zoneinfo2lua.pl

index c996634444a65eb57299647f2b25a34c230f5bbe..2f30d9f9424e067a20b62f2fc611d825a19faaa1 100755 (executable)
@@ -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): $!";
git clone https://git.99rst.org/PROJECT