From 95238ca682eadca3dd1b839b69e375d61e16af24 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 10 Jul 2019 00:52:58 -0700 Subject: tz: Specify zic outputs explicitly --- pkg/tz/tzdata.lua | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 pkg/tz/tzdata.lua (limited to 'pkg/tz/tzdata.lua') diff --git a/pkg/tz/tzdata.lua b/pkg/tz/tzdata.lua deleted file mode 100644 index 903af2cf..00000000 --- a/pkg/tz/tzdata.lua +++ /dev/null @@ -1,24 +0,0 @@ -local function execute(cmd) - if not os.execute(cmd) then - error('command failed: '..cmd) - end -end - -local hash = 'sh ./scripts/hash.sh %s %s share/zoneinfo/%s %s' -local repo = arg[1] -local outdir = arg[2] -for i = 3, #arg do - execute(string.format('zic -d %s %s', outdir, arg[i])) - for line in io.lines(arg[i]) do - local target, name = line:match('^Link%s+(%g+)%s+(%g+)') - if target then - target = name:gsub('[^/]+', '..'):sub(1, -3)..target - execute(hash:format(repo, 120000, name, target)) - else - name = line:match('^Zone%s+(%g+)') - if name then - execute(hash:format(repo, 100644, name, outdir..'/'..name)) - end - end - end -end -- cgit v1.2.3