diff options
| author | Michael Forney <mforney@mforney.org> | 2017-10-22 18:54:20 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-10-23 21:43:33 -0700 |
| commit | 2fce3c20caf4c7c3d4121eedfb6169c7edfeb151 (patch) | |
| tree | 8cfb78db280aa1cc4abf47a7287fd3d2459d9763 /setup.lua | |
| parent | e5cfa84477427cc8233ff18ab235c4eb88c1d7d2 (diff) | |
Move $dir/local.perms -> $outdir/local.perms
Diffstat (limited to 'setup.lua')
| -rwxr-xr-x | setup.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -46,6 +46,10 @@ function gen(dir) }, perms={}, } + local outdir = config.builddir..'/'..dir + if not os.execute('mkdir -p '..outdir) then + error('failed to create '..outdir) + end io.output(dir..'/local.ninja.tmp') set('dir', dir) if dir ~= '.' then @@ -76,10 +80,10 @@ function gen(dir) table.sort(pkg.perms, function(s1, s2) return s1:sub(8) < s2:sub(8) end) - local f = io.open(dir..'/local.perms', 'w') + local f = io.open(outdir..'/local.perms', 'w') table.insert(pkg.perms, '') f:write(table.concat(pkg.perms, '\n')) - table.insert(pkg.inputs.perms, '$dir/local.perms') + table.insert(pkg.inputs.perms, '$outdir/local.perms') f:close() end if next(pkg.inputs.perms) then |
