From c8bac066234103a6fd87c4d32f08fd1622be5ba3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 2 Jan 2011 17:29:19 +0000 Subject: [PATCH] build: make zoneinfo2lua.pl script more convenient --- build/zoneinfo2lua.pl | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 build/zoneinfo2lua.pl diff --git a/build/zoneinfo2lua.pl b/build/zoneinfo2lua.pl old mode 100644 new mode 100755 index 7e772c0af..2e24c9541 --- 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: $!"; -- 2.25.1