projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9736ec
)
build: make zoneinfo2lua.pl script more convenient
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 2 Jan 2011 17:29:19 +0000
(17:29 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 2 Jan 2011 17:29:19 +0000
(17:29 +0000)
build/zoneinfo2lua.pl
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/build/zoneinfo2lua.pl
b/build/zoneinfo2lua.pl
old mode 100644
(file)
new mode 100755
(executable)
index
7e772c0
..
2e24c95
--- 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: $!";