* t/verbatim.sh: This test copied in files from the directory of Automake
internal '.am' fragments, and then overwrote one of them with 'cat >'.
But that is bound to fail under a "make distcheck", because in that case
all of the source directory (in particular the '.am' files in it) are made
read only. This can be fixed by unlinking the file we want to overwrite
before actually writing to it.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
echo pkgdata_DATA = configure.ac > Makefile.am
+# The '.am' file are read-only when this test is run under
+# "make distcheck", so we need to unlink any of them we want
+# to overwrite.
+rm -f am/data.am
cat > am/data.am << 'END'
include 0.am
include 1.am