diff options
| author | Michael Forney <mforney@mforney.org> | 2017-09-24 12:04:42 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-09-25 19:23:06 -0700 |
| commit | 86595977d761baa67c1462efd59a6404b56205ad (patch) | |
| tree | 515fbfbb2154f288e53eb3a94b6191b7e1d95b57 /pkg/tz/gen.lua | |
| parent | ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (diff) | |
tz: Write tzdata hash script in lua
This should make it easier to support the users `config.fs`.
Diffstat (limited to 'pkg/tz/gen.lua')
| -rw-r--r-- | pkg/tz/gen.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/tz/gen.lua b/pkg/tz/gen.lua index 80c4dd5f..38a78ffb 100644 --- a/pkg/tz/gen.lua +++ b/pkg/tz/gen.lua @@ -19,11 +19,12 @@ local tzdata = { 'systemv', 'factory', } -build('awk', '$outdir/tzdata.index', { +rule('tzdata', 'lua $dir/tzdata.lua $repo $outdir/zoneinfo $in >$out.tmp && mv $out.tmp $out') +build('tzdata', '$outdir/tzdata.index', { expand{'$srcdir/', tzdata}, - '|', 'scripts/hash.rc', '$dir/tzdata.awk', + '|', '$dir/tzdata.lua', 'scripts/hash.rc', '||', '$builddir/root.stamp', -}, {expr='-f $dir/tzdata.awk out=$outdir/zoneinfo repo=$repo'}) +}) table.insert(pkg.inputs.index, '$outdir/tzdata.index') fetch 'git' |
