diff options
| author | Michael Forney <mforney@mforney.org> | 2024-01-01 11:45:34 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2024-01-01 11:56:14 -0800 |
| commit | 4019636cfad5b0d0cc55b4c4dfab44e7ac27d61b (patch) | |
| tree | 890de86c8b7d84598fa5c2cbbe3f3b982e4e19c5 /ninja.lua | |
| parent | 824e2b0a6a1fc5bf7a7b96716082a5a2472c9de6 (diff) | |
Allow nested tables in copy() file list
Diffstat (limited to 'ninja.lua')
| -rw-r--r-- | ninja.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -499,9 +499,9 @@ end function copy(outdir, srcdir, files) local outs = {} - for i, file in ipairs(files) do + for file in iterstrings(files) do local out = outdir..'/'..file - outs[i] = out + table.insert(outs, out) build('copy', out, srcdir..'/'..file) end return outs |
