mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
build: make zoneinfo2lua.pl script more convenient
This commit is contained in:
Regular → Executable
+3
@@ -6,6 +6,9 @@
|
||||
use strict;
|
||||
|
||||
my %TZ;
|
||||
my $tzdir = $ARGV[0] || "/usr/share/zoneinfo";
|
||||
|
||||
chdir($tzdir) || die "chdir($tzdir): $!\n";
|
||||
|
||||
local $/ = "\012";
|
||||
open( ZTAB, "< ./zone.tab" ) || die "Unable to open zone.tab: $!";
|
||||
|
||||
Reference in New Issue
Block a user