I attempted to fix this in commit c06d1fba40, but it was apparently
incomplete and not all cases were covered by tests.
Let's add a much more thorough test by going through every possible
combination and making sure redo-{sources,targets,ood} all work as
expected, that the "you modified it" warning does or does not show up
when expected, and that dependencies are rebuilt the number of times we
expect.
11 lines
150 B
Text
11 lines
150 B
Text
printf x >>$1.log
|
|
redo-always
|
|
|
|
read want <want
|
|
|
|
case $want in
|
|
err) exit 10 ;;
|
|
nil) exit 0 ;;
|
|
add) printf x >>$3; exit 0 ;;
|
|
*) exit 80 ;;
|
|
esac
|