summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-06-05 13:27:23 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-06-12 13:59:33 +0100
commit434dbb6be72447e122fe39ce17e83fce36788c6f (patch)
tree4821d4e7f77965184dee3c4948110c952dfdf899
parentef718c0d77707cacd3b4070554c2e6591b6ec093 (diff)
Fix distcheck: remove potentially-read-only files from builddir
During distcheck, the srcdir is read-only. During "make all", cp may preserve the read-only status of the file copied from the srcdir, resulting in failure to overwrite it with an identical file during "make check" (which depends on all-local). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r--test/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index f2d55fe2..6f8a677c 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -308,6 +308,7 @@ all-local:
else \
for F in $(static_data); do \
$(MKDIR_P) $${F%/*}; \
+ rm -f $$F; \
cp $(srcdir)/$$F $$F; \
done; \
fi