summaryrefslogtreecommitdiffhomepage
path: root/build/zoneinfo2lua.pl
diff options
context:
space:
mode:
Diffstat (limited to 'build/zoneinfo2lua.pl')
-rwxr-xr-x[-rw-r--r--]build/zoneinfo2lua.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/zoneinfo2lua.pl b/build/zoneinfo2lua.pl
index 7e772c0af..2e24c9541 100644..100755
--- a/build/zoneinfo2lua.pl
+++ b/build/zoneinfo2lua.pl
@@ -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: $!";