]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Remove each output redirection target before writing to it.
authorJim Meyering <meyering@redhat.com>
Sun, 13 Jan 2008 11:44:53 +0000 (12:44 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 13 Jan 2008 11:47:42 +0000 (12:47 +0100)
* 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.

ChangeLog
build-aux/check.mk
tests/check.mk

index dd353e740636021acb83dad25d767a636cdcd39f..b84dc492d72d8fa07a46192a06334fbf0c541f14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 95f56cb5f3e1464773a97c5b8ec8671e8bf278cc..34169f50def13c150f90f497c9f1d698726155a9 100644 (file)
@@ -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=;               \
index 63f11e4493cc3f9b0747310a1997d034186afaeb..03e3f70427b4372bb99f51a3405d29354e482304 100644 (file)
@@ -1,5 +1,5 @@
 # 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
@@ -19,6 +19,7 @@
 # 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'                      \