summaryrefslogtreecommitdiff
path: root/setup.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-22 11:57:42 -0700
committerMichael Forney <mforney@mforney.org>2020-06-22 22:59:35 -0700
commitb4ced98b9dd28062a7990592b7723b8916448679 (patch)
tree9b8f500436b9f9af7557d87d6088494bc81a0528 /setup.lua
parent677859db25f2b0e3dd88d7636219dc0dd9a43ac0 (diff)
Generate root.perms from fspec
Diffstat (limited to 'setup.lua')
-rwxr-xr-xsetup.lua18
1 files changed, 0 insertions, 18 deletions
diff --git a/setup.lua b/setup.lua
index 40f2dd82..27984fa0 100755
--- a/setup.lua
+++ b/setup.lua
@@ -33,7 +33,6 @@ local function gen(gendir)
srcdir=dir..'/src',
outdir=outdir,
inputs={
- perms={},
index={},
fspec={implicit={}},
gen={
@@ -45,7 +44,6 @@ local function gen(gendir)
ninja={'$gendir/local.ninja'},
fetch={},
},
- perms={},
fspec={},
}
assert(os.execute(('exec mkdir -p %s %s'):format(gendir, outdir)))
@@ -76,16 +74,6 @@ local function gen(gendir)
phony('deps', pkg.deps)
end
- if next(pkg.perms) then
- table.sort(pkg.perms, function(s1, s2)
- return s1:sub(8) < s2:sub(8)
- end)
- local f = assert(io.open(outdir..'/local.perms', 'w'))
- f:write(table.concat(pkg.perms, '\n'))
- f:write('\n')
- table.insert(pkg.inputs.perms, '$outdir/local.perms')
- f:close()
- end
if next(pkg.fspec) then
local out = outdir..'/local.fspec'
local tmp = out..'.tmp'
@@ -109,11 +97,6 @@ local function gen(gendir)
end
table.insert(pkg.inputs.fspec, '$outdir/local.fspec')
end
- if next(pkg.inputs.perms) then
- build('mergeperms', '$outdir/root.perms', pkg.inputs.perms)
- else
- build('empty', '$outdir/root.perms')
- end
if next(pkg.inputs.index) then
build('cat', '$outdir/root.index', pkg.inputs.index, {
description=' INDEX $outdir/root.index',
@@ -144,7 +127,6 @@ function subgen(dir)
subninja(file)
table.insert(pkg.inputs.ninja, '$gendir/'..dir..'/ninja')
table.insert(pkg.inputs.index, '$outdir/'..dir..'/root.index')
- table.insert(pkg.inputs.perms, '$outdir/'..dir..'/root.perms')
table.insert(pkg.inputs.fspec, '$outdir/'..dir..'/root.fspec')
local cmd = ('exec test -f %s/%s/local.ninja'):format(pkg.gendir, dir)
if recurse or not os.execute(cmd) then