diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-22 11:57:42 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-22 22:59:35 -0700 |
| commit | b4ced98b9dd28062a7990592b7723b8916448679 (patch) | |
| tree | 9b8f500436b9f9af7557d87d6088494bc81a0528 /ninja.lua | |
| parent | 677859db25f2b0e3dd88d7636219dc0dd9a43ac0 (diff) | |
Generate root.perms from fspec
Diffstat (limited to 'ninja.lua')
| -rw-r--r-- | ninja.lua | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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) |
