apenwarr-redo/t/deps/test1.do
Avery Pennarun 94c254de77 Rename flush-cache.py to flush-cache, and rearrange the code a bit.
It was working fine, but the style wasn't exactly the way I like it, because
I'm unnecessarily picky. :)

Also, removed the file extension since we should probably learn from the
fact that it's already been rewritten once from one language to another.
Who knows, maybe it will be again someday.
2011-02-23 01:27:41 -08:00

15 lines
277 B
Text

# force-rebuild t1dep
redo t1dep
if [ -e t1a ]; then
BEFORE="$(cat t1a)"
else
BEFORE=
fi
../flush-cache
redo-ifchange t1a # it definitely had to rebuild because t1dep changed
AFTER="$(cat t1a)"
if [ "$BEFORE" = "$AFTER" ]; then
echo "t1a was not rebuilt!" >&2
exit 43
fi