From 10bc5417a161be983f33a4cc6ffdf2a4c2800644 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 1 Feb 2020 00:32:22 -0800 Subject: Fix fetch rules when $basedir != . --- rules.ninja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.ninja b/rules.ninja index 21cb535d..a8f58d52 100644 --- a/rules.ninja +++ b/rules.ninja @@ -120,21 +120,21 @@ rule gitinit command = git init $repo_flags $repo && touch $out rule fetchcurl - command = cd $basedir && sh $basedir/scripts/fetch-curl.sh $gendir && touch $out + command = cd $basedir && sh scripts/fetch-curl.sh $gendir && touch $$OLDPWD/$out description = FETCH $gendir restat = 1 generator = 1 pool = console rule fetchgit - command = cd $basedir && sh $basedir/scripts/fetch-git.sh $gendir && touch $out + command = cd $basedir && sh scripts/fetch-git.sh $gendir && touch $$OLDPWD/$out description = FETCH $gendir restat = 1 generator = 1 pool = console rule fetchlocal - command = cd $basedir && sh $gendir/fetch.sh $gendir && touch $out + command = cd $basedir && sh $gendir/fetch.sh $gendir && touch $$OLDPWD/$out description = FETCH $gendir restat = 1 generator = 1 -- cgit v1.2.3