When we check dependencies and a previously-is_generated dependency existed before, but no longer does, forget that it was is_generated. This slightly improves the situation where as a project evolves, a file that used to be a target gets removed, and then later is re-added as a static source file. (It doesn't fix the other variant, where a file is changed from target to source in a single atomic change, and is never missing. That one will be trickier to handle.) While adding a test for this behaviour, I discovered that redo-sources, redo-targets, and redo-ood were reporting their output relative to STARTDIR instead of relative to $PWD, so fix that too.
13 lines
405 B
Text
13 lines
405 B
Text
exec >&2
|
|
rm -rf t/.redo redo-sh
|
|
if [ -e .do_built ]; then
|
|
while read x; do
|
|
[ -d "$x" ] || rm -f "$x"
|
|
done <.do_built
|
|
fi
|
|
[ -z "$DO_BUILT" ] && rm -rf .do_built .do_built.dir
|
|
rm -rf minimal/.do_built minimal/.do_built.dir website
|
|
redo t/clean Documentation/clean version/clean
|
|
rm -f *~ .*~ */*~ */.*~ *.pyc install.wrapper
|
|
find . -name '*.tmp' -exec rm -fv {} \;
|
|
find . -name '*.did' -exec rm -fv {} \;
|