build: make zoneinfo2lua.pl script more convenient
This commit is contained in:
parent
d9736ece54
commit
c8bac06623
1 changed files with 3 additions and 0 deletions
3
build/zoneinfo2lua.pl
Normal file → Executable file
3
build/zoneinfo2lua.pl
Normal file → Executable file
|
@ -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: $!";
|
||||
|
|
Loading…
Reference in a new issue