+2008-01-13 Jim Meyering <meyering@redhat.com>
+
+ 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.
+
2008-01-13 Elias Pipping <pipping@gentoo.org>
* configure.ac: Correct a non-portable use of sed.
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=; \
# Include this file at the end of each tests/*/Makefile.am.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# one that does not end in '\'.
_v = TESTS
vc_exe_in_TESTS: Makefile
+ @rm -f t1 t2
@if test -d $(top_srcdir)/.git && test $(srcdir) = .; then \
sed -n '/^$(_v) = \\$$/,/[^\]$$/p' $(srcdir)/Makefile.am \
| sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \