summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-01-13 12:44:53 +0100
committerJim Meyering <meyering@redhat.com>2008-01-13 12:47:42 +0100
commitd2e298b45dd00cd328a3819ae4fd5f825ea49c33 (patch)
tree63f0a7ca974edb019e04dfd251f7633da8c778f1 /build-aux
parentf088d94d2526353d29b4fcde35e1adede7b6e944 (diff)
downloadcoreutils-d2e298b45dd00cd328a3819ae4fd5f825ea49c33.tar.xz
Remove each output redirection target before writing to it.
* tests/check.mk (vc_exe_in_TESTS): Remove t1 and t2 _first_, in case they exist beforehand and are not writable. * build-aux/check.mk (am__check_pre): Likewise, remove $@-t.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/check.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-aux/check.mk b/build-aux/check.mk
index 95f56cb5f..34169f50d 100644
--- a/build-aux/check.mk
+++ b/build-aux/check.mk
@@ -95,6 +95,7 @@ SH_E_WORKAROUND = case $$- in *e*) set +e;; esac
am__check_pre = \
$(SH_E_WORKAROUND); \
tst=`echo "$$src" | sed 's|^.*/||'`; \
+rm -f $@-t; \
$(mkdir_p) "$$(dirname $@)" || exit; \
if test -f "./$$src"; then dir=./; \
elif test -f "$$src"; then dir=; \