Add a redo-always command: it adds an "always dirty" dependency to your target.

This is mostly useless except when combined with redo-stamp... I think.
This commit is contained in:
Avery Pennarun 2010-12-11 07:02:45 -08:00
commit 0da5c7c082
10 changed files with 45 additions and 7 deletions

View file

@ -7,6 +7,7 @@ redo stampy
# stampy already exists, so we won't generate it a second time, even though
# usestamp depends on it.
../flush-cache.sh
redo-ifchange usestamp
[ "$(wc -l <stampy.log)" -eq 1 ] || exit 21
[ "$(wc -l <usestamp.log)" -eq 1 ] || exit 12
@ -17,6 +18,7 @@ redo stampy
[ "$(wc -l <usestamp.log)" -eq 1 ] || exit 32
# same as above: stampy is already up-to-date, so it won't be redone.
../flush-cache.sh
redo-ifchange usestamp
[ "$(wc -l <stampy.log)" -eq 2 ] || exit 41
[ "$(wc -l <usestamp.log)" -eq 1 ] || exit 42