Fix distcheck: remove potentially-read-only files from builddir
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 5 Jun 2012 12:27:23 +0000 (13:27 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 5 Jun 2012 12:27:23 +0000 (13:27 +0100)
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>
test/Makefile.am

index 0418e59..aa04792 100644 (file)
@@ -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