minimal-do: deal with 'clean.do' operations better.
Sometimes clean.do implementations want to delete our .do_built file and directory. If that happens, deal with it quietly, as long as they don't request any *additional* redo-type operations.
This commit is contained in:
parent
39cfdafd8a
commit
304e88022a
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ _do()
|
||||||
echo "do: $TARGET: no .do file" >&2
|
echo "do: $TARGET: no .do file" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
: >>"$TARGET.did"
|
[ ! -e "$DO_BUILD" ] || : >>"$TARGET.did"
|
||||||
( _run_dofile "$BASE" "$EXT" "$TARGET.tmp" )
|
( _run_dofile "$BASE" "$EXT" "$TARGET.tmp" )
|
||||||
RV=$?
|
RV=$?
|
||||||
if [ $RV != 0 ]; then
|
if [ $RV != 0 ]; then
|
||||||
|
|
@ -147,6 +147,7 @@ fi
|
||||||
|
|
||||||
if [ -n "$DO_TOP" ]; then
|
if [ -n "$DO_TOP" ]; then
|
||||||
echo "Removing stamp files..." >&2
|
echo "Removing stamp files..." >&2
|
||||||
|
[ ! -e "$DO_BUILT" ] ||
|
||||||
while read f; do printf "%s.did\0" "$f"; done <"$DO_BUILT" |
|
while read f; do printf "%s.did\0" "$f"; done <"$DO_BUILT" |
|
||||||
xargs -0 rm -f 2>/dev/null
|
xargs -0 rm -f 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue