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:
parent
1d26d99e0c
commit
0da5c7c082
10 changed files with 45 additions and 7 deletions
13
t/alwaystest.do
Normal file
13
t/alwaystest.do
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
rm -f always1 always1.log
|
||||
|
||||
redo always1
|
||||
[ "$(wc -l <always1.log)" -eq 1 ] || exit 11
|
||||
|
||||
# This shouldn't rebuild, but because other people might be running flush-cache.sh
|
||||
# in parallel with us, we can't be 100% sure it won't. So don't test it.
|
||||
#redo-ifchange always1
|
||||
#[ "$(wc -l <always1.log)" -eq 1 ] || exit 21
|
||||
|
||||
./flush-cache.sh
|
||||
redo-ifchange always1
|
||||
[ "$(wc -l <always1.log)" -eq 2 ] || exit 31
|
||||
Loading…
Add table
Add a link
Reference in a new issue