Mercurial > hg
diff Makefile @ 31609:8e516f71577a
osx: install completion scripts using install(1) to avoid umask badness
This actually fixes some tests that were showing us umask badness that
had been overlooked.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 20 Mar 2017 17:50:05 -0400 |
parents | 408dcf7475a7 |
children | 6359976b43be |
line wrap: on
line diff
--- a/Makefile Fri Mar 24 08:37:26 2017 -0700 +++ b/Makefile Mon Mar 20 17:50:05 2017 -0400 @@ -165,14 +165,14 @@ make -C doc all install DESTDIR="$(PWD)/build/mercurial/" # install zsh completions - this location appears to be # searched by default as of macOS Sierra. - mkdir -p build/mercurial/usr/local/share/zsh/site-functions - cp contrib/zsh_completion build/mercurial/usr/local/share/zsh/site-functions/hg + install -d build/mercurial/usr/local/share/zsh/site-functions/ + install -m 0644 contrib/zsh_completion build/mercurial/usr/local/share/zsh/site-functions/hg # install bash completions - there doesn't appear to be a # place that's searched by default for bash, so we'll follow # the lead of Apple's git install and just put it in a # location of our own. - mkdir -p build/mercurial/usr/local/hg/contrib - cp contrib/bash_completion build/mercurial/usr/local/hg/contrib/hg-completion.bash + install -d build/mercurial/usr/local/hg/contrib/ + install -m 0644 contrib/bash_completion build/mercurial/usr/local/hg/contrib/hg-completion.bash mkdir -p $${OUTPUTDIR:-dist} HGVER=$$((cat build/mercurial/Library/Python/2.7/site-packages/mercurial/__version__.py; echo 'print(version)') | python) && \ OSXVER=$$(sw_vers -productVersion | cut -d. -f1,2) && \