summaryrefslogtreecommitdiff
path: root/ninja.rc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-07-15 19:17:48 -0700
committerMichael Forney <mforney@mforney.org>2016-07-16 14:23:20 -0700
commit78c4cc0023cd0e9e6df03a07f396017da48e336c (patch)
tree1d1e77577e197608136d9867e16ca1bbd2cdec7e /ninja.rc
parentb6392fac15793878df45a57d049a063b4e781e2c (diff)
Don't list git repository files as outputs
This way, ninja -t clean will work as expected.
Diffstat (limited to 'ninja.rc')
-rw-r--r--ninja.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ninja.rc b/ninja.rc
index 36d431b9..15cc87f5 100644
--- a/ninja.rc
+++ b/ninja.rc
@@ -142,7 +142,7 @@ fn file {
mode=`{printf %4s $3 | tr ' ' 0 | tail -c 4}
build $out githash $2 '|' '$builddir/$repo.stamp' scripts/hash.rc ; with\
args 10$mode' '$1
- tree_inputs=($tree_inputs $out)
+ index_inputs=($index_inputs $out)
if(! ~ $mode 0755 0644) tree_perms=($tree_perms 10$mode' '$1)
}
@@ -161,7 +161,7 @@ fn sym {
out='$builddir/$repo.hash'/$1
build $out githash '|' '$builddir/$repo.stamp' scripts/hash.rc ; with\
args 120000' '$1' '$2
- tree_inputs=($tree_inputs $out)
+ index_inputs=($index_inputs $out)
}
status=()
}