Mercurial > octave
changeset 23529:03c000f5e746
fix permissions on files and directories included in the distribution
* Makefile.am (fix-file-perms-dist-hook): New target, ensure permissions
are set correctly and consistently on files and directories included in
the source distribution.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 23 May 2017 16:09:20 -0700 |
parents | ba25f4e38a23 |
children | 60695e6ef416 |
files | Makefile.am |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.am Tue May 23 16:51:42 2017 -0700 +++ b/Makefile.am Tue May 23 16:09:20 2017 -0700 @@ -248,6 +248,7 @@ DIST_HOOKS := \ doc-interpreter-dist-hook \ docs-dist-hook \ + fix-file-perms-dist-hook \ hg-id-dist-hook \ icons-dist-hook \ scripts-dist-hook @@ -261,6 +262,16 @@ @echo "Documentation disabled. Cannot package distribution!" ; exit 1; endif +## Ensure file permissions are consistent on all files included in the +## distribution. Automake takes care of normalizing some permissions of +## normal files and directories. Automake does not ensure that files don't +## have unnecessarily lax write permissions. It also does not ensure that +## executable permissions are set for group and other users. +fix-file-perms-dist-hook: + -chmod -R go-w "$(distdir)" + -find "$(distdir)" -type f -perm -100 -exec chmod a+rx {} \; +.PHONY: fix-file-perms-dist-hook + if AMCOND_ENABLE_HG_ID hg-id-dist-hook: else