summaryrefslogtreecommitdiff
path: root/ninja.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 /ninja.lua
parent677859db25f2b0e3dd88d7636219dc0dd9a43ac0 (diff)
Generate root.perms from fspec
Diffstat (limited to 'ninja.lua')
-rw-r--r--ninja.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/ninja.lua b/ninja.lua
index 210a45f2..6cf3cabf 100644
--- a/ninja.lua
+++ b/ninja.lua
@@ -435,9 +435,6 @@ function gitfile(path, mode, src)
args=perm,
})
table.insert(pkg.inputs.index, out)
- if mode ~= '0644' and mode ~= '0755' then
- table.insert(pkg.perms, perm)
- end
end
function file(path, mode, src)
@@ -458,12 +455,10 @@ function dir(path, mode)
if pkg.gendir:hasprefix('pkg/') and not fs(pkg.name, path) then
return
end
- mode = ('%04o'):format(tonumber(mode, 8))
pkg.fspec[path] = {
type='dir',
- mode=mode,
+ mode=('%04o'):format(tonumber(mode, 8)),
}
- table.insert(pkg.perms, ('04%s %s'):format(mode, path))
end
function sym(path, target)