minimal/do: don't print an error on exit if we don't build anything.
This commit is contained in:
parent
96347f3d83
commit
f24d4f142b
1 changed files with 6 additions and 7 deletions
13
minimal/do
13
minimal/do
|
|
@ -19,13 +19,12 @@ DO_TOP=
|
|||
if [ -z "$DO_BUILT" ]; then
|
||||
DO_TOP=1
|
||||
export DO_BUILT=$PWD/.do_built
|
||||
if [ -e "$DO_BUILT" ]; then
|
||||
echo "Removing previously built files..." >&2
|
||||
sort -u "$DO_BUILT" | tee "$DO_BUILT.new" |
|
||||
while read f; do printf "%s\0%s.did\0" "$f" "$f"; done |
|
||||
xargs -0 rm -f 2>/dev/null
|
||||
mv "$DO_BUILT.new" "$DO_BUILT"
|
||||
fi
|
||||
: >>"$DO_BUILT"
|
||||
echo "Removing previously built files..." >&2
|
||||
sort -u "$DO_BUILT" | tee "$DO_BUILT.new" |
|
||||
while read f; do printf "%s\0%s.did\0" "$f" "$f"; done |
|
||||
xargs -0 rm -f 2>/dev/null
|
||||
mv "$DO_BUILT.new" "$DO_BUILT"
|
||||
DO_PATH=$DO_BUILT.dir
|
||||
export PATH=$DO_PATH:$PATH
|
||||
rm -rf "$DO_PATH"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue