diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-01-02 17:29:19 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-01-02 17:29:19 +0000 |
commit | c8bac066234103a6fd87c4d32f08fd1622be5ba3 (patch) | |
tree | 004a11ed160fba544c50b0ac71e678f6a4d2f141 /build | |
parent | d9736ece54d502709a06b759bcdbebe9af56b4ef (diff) |
build: make zoneinfo2lua.pl script more convenient
Diffstat (limited to 'build')
-rwxr-xr-x[-rw-r--r--] | build/zoneinfo2lua.pl | 3 |
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: $!"; |