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>2012-06-05 13:27:23 +0100
commit7db205d25d93f801b5f22dfb8afd059c3961ff4f (patch)
tree145c75390547a641da158185b091894eab59da32
parent9a727711a55c8b9d23b3fd445e39019a850f149f (diff)
downloaddbus-7db205d25d93f801b5f22dfb8afd059c3961ff4f.tar.gz
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 0418e595..aa04792b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -294,6 +294,7 @@ all-local:
else \
for F in $(static_data); do \
$(MKDIR_P) $${F%/*}; \
+ rm -f $$F; \
cp $(srcdir)/$$F $$F; \
done; \
fi