summaryrefslogtreecommitdiff
path: root/ninja.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2025-04-28 14:27:49 -0700
committerMichael Forney <mforney@mforney.org>2025-04-28 14:27:49 -0700
commitea3cbbd89c92c107b719e121e2675d22a75585f7 (patch)
tree9f0efbe533f704ce19c96c01ffc416a9d8e96218 /ninja.lua
parent95cf1ad5e0a86b62260f6a5eb24cc9cf33d92d0a (diff)
Use our own pax for extracting archives
This reduces dependencies and variability in pax implementations.
Diffstat (limited to 'ninja.lua')
-rw-r--r--ninja.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/ninja.lua b/ninja.lua
index 7b6ed3eb..ca6822b3 100644
--- a/ninja.lua
+++ b/ninja.lua
@@ -392,12 +392,16 @@ end
function fetch(method)
local script
+ local deps = {'|', '$dir/ver', script}
if method == 'local' then
script = '$dir/fetch.sh'
else
script = '$basedir/scripts/fetch-'..method..'.sh'
+ if method == 'curl' then
+ table.insert(deps, '$builddir/pkg/pax/host/pax')
+ end
end
- build('fetch', '$dir/fetch', {'|', '$dir/ver', script}, {script=script})
+ build('fetch', '$dir/fetch', deps, {script=script})
if basedir ~= '.' then
build('phony', '$gendir/fetch', '$dir/fetch')
end