From: Jo-Philipp Wich Date: Sun, 2 Jan 2011 17:29:19 +0000 (+0000) Subject: build: make zoneinfo2lua.pl script more convenient X-Git-Tag: 0.10.0~261 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c8bac066234103a6fd87c4d32f08fd1622be5ba3;p=oweals%2Fluci.git build: make zoneinfo2lua.pl script more convenient --- 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: $!";