summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-11-20 21:33:48 +0100
committerJim Meyering <meyering@redhat.com>2011-11-20 23:30:25 +0100
commit67b442f2aa53103848098cfe279e2cff116c7367 (patch)
treefbe872043a9d500171e6b88c241d104c40865a3b /Makefile.am
parent054567f5a74f61a4c2f7dca84850e1b6b3b19f52 (diff)
downloadcoreutils-67b442f2aa53103848098cfe279e2cff116c7367.tar.xz
maint: make generated THANKS file read-only
* Makefile.am (THANKS): Make generated file read-only.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 716cbdde1..b866cbbef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -143,7 +143,7 @@ ASSORT = LC_ALL=C sort
prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
THANKS: THANKS.in Makefile.am .mailmap thanks-gen .version
- $(AM_V_GEN) \
+ $(AM_V_GEN)rm -f $@-t $@; \
{ \
$(prologue); echo; \
{ perl -ne '/^$$/.../^$$/ and print' $(srcdir)/THANKS.in \
@@ -154,7 +154,7 @@ THANKS: THANKS.in Makefile.am .mailmap thanks-gen .version
| LC_ALL=en_US.UTF-8 sort -f; \
echo; \
printf ';; %s\n' 'Local Variables:' 'coding: utf-8' End:; \
- } > $@-t && mv $@-t $@
+ } > $@-t && chmod a-w $@-t && mv $@-t $@
# Some of our git hook scripts are supposed to be identical to git's samples.
# See if they are still in sync.