It actually decreases readability of the .do files - by not making it explicit when you're going into a subdir. Plus it adds ambiguity: what if there's a dirname.do *and* a dirname/all? We could resolve the ambiguity if we wanted, but that adds more code, while taking out this special case makes *less* code and improves readability. I think it's the right way to go.
7 lines
150 B
Text
7 lines
150 B
Text
rm -f makedir.log
|
|
redo makedir
|
|
touch makedir/outfile
|
|
. ./flush-cache.sh
|
|
redo-ifchange makedir
|
|
COUNT=$(wc -l <makedir.log)
|
|
[ "$COUNT" = 1 ] || exit 99
|