OSDN Git Service

mesa: automake: ensure that git_sha1.h.tmp has the right attributes
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 6 Jun 2016 16:31:05 +0000 (17:31 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Jun 2016 11:35:50 +0000 (12:35 +0100)
... when copied from git_sha1.h.

As the latter file can we lacking the write attribute, one should set it
explicitly. Otherwise we'll get a warning/failure at cleanup stage.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 2c424e00c3995a6a88f4db0c5dc9fd03ea749ebd)

src/Makefile.am

index 08446a8..a5c54ff 100644 (file)
@@ -33,6 +33,7 @@ git_sha1.h.tmp:
                fi \
        else \
                cp $(srcdir)/git_sha1.h git_sha1.h.tmp ;\
+               chmod u+w git_sha1.h.tmp; \
        fi
 
 git_sha1.h: git_sha1.h.tmp