diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-12-16 00:28:19 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-12-17 00:25:25 +0000 |
commit | 896006bf7620c81435fd67cc3765e85a9f480fe7 (patch) | |
tree | 01aec1a488a8985c63798e95fd2a32cb02c22145 /Makefile.am | |
parent | f9a6c5b3b6c02e0feef5abec29d2ec640a27b36c (diff) | |
download | coreutils-896006bf7620c81435fd67cc3765e85a9f480fe7.tar.xz |
build: ensure all files are writable in the tarball
* Makefile.am (dist-hook): Ensure all files are writable
so that extracted tarballs are easy to remove, without
getting prompts about removing read-only files.
Reported by Benno Schulenberg.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index d1004e1a8..d19b8345b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,11 +99,13 @@ BUILT_SOURCES = .version .version: $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@ -# Arrange so that .tarball-version appears only in the distribution -# tarball, and never in a checked-out repository. +# Have no read-only files in the tarball to allow easy removal. +# Have .tarball-version based versions only in tarball builds. +# Have .timestamp based dates only in tarball builds. # The perl substitution is to change some key uses of "rm" to "/bin/rm". # See the rm_subst comment for details. dist-hook: gen-ChangeLog + $(AM_V_GEN)chmod -R ug+rw $(distdir) $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version $(AM_V_GEN)date +%s > $(distdir)/.timestamp $(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/Makefile.in |