]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
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 0418e5959cc7798a893f879982b4284cb2ec0220..aa04792b4fbf49564497247f68300bc67ecb1905 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