logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: dbe1077c3f0b6d79f8ea5eefd97f98780246d0cf
parent 5cbbb9e3773b329f13ea05b97be40a48d5f8d0d6
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 22 Jun 2020 12:42:12 -0700

Remove unnecessary fetch rules

Diffstat:

Mninja.lua2+-
Mrules.ninja18++----------------
2 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/ninja.lua b/ninja.lua @@ -397,7 +397,7 @@ function fetch(method) else script = '$basedir/scripts/fetch-'..method..'.sh' end - build('fetch-'..method, '$dir/fetch', {'|', '$dir/ver', script}) + build('fetch', '$dir/fetch', {'|', '$dir/ver', script}, {script=script}) if basedir ~= '.' then build('phony', '$gendir/fetch', '$dir/fetch') end diff --git a/rules.ninja b/rules.ninja @@ -118,22 +118,8 @@ rule git-archive rule git-init command = git init $repo_flags $repo && touch $out -rule fetch-curl - command = cd $basedir && sh scripts/fetch-curl.sh $gendir && touch $$OLDPWD/$out - description = FETCH $gendir - restat = 1 - generator = 1 - pool = console - -rule fetch-git - command = cd $basedir && sh scripts/fetch-git.sh $gendir && touch $$OLDPWD/$out - description = FETCH $gendir - restat = 1 - generator = 1 - pool = console - -rule fetch-local - command = cd $basedir && sh $gendir/fetch.sh $gendir && touch $$OLDPWD/$out +rule fetch + command = cd $basedir && sh $$OLDPWD/$script $gendir && touch $$OLDPWD/$out description = FETCH $gendir restat = 1 generator = 1