diff options
author | George Hartzell <hartzell@alerce.com> | 2017-04-11 05:39:03 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-11 07:39:03 -0500 |
commit | 47aa8053e913be5954506bf96816cb0583536ccc (patch) | |
tree | 3cd5bd2374e0e687277693af6a65987d5f218846 /var/spack/repos/builtin/packages/git | |
parent | 74b1f2b8601d719aabd8f512a57bf36f78d0a4fb (diff) | |
download | spack-47aa8053e913be5954506bf96816cb0583536ccc.tar.gz spack-47aa8053e913be5954506bf96816cb0583536ccc.tar.bz2 spack-47aa8053e913be5954506bf96816cb0583536ccc.tar.xz spack-47aa8053e913be5954506bf96816cb0583536ccc.zip |
Install the shell completion scripts (#3784)
* Install the shell completion scripts
Install the `git-completion.{bash,tcsh,zsh}` and `git-prompt.sh` into
`$(spack location -i git)/share/` (aka `prefix.share/`).
* Use copy_tree to copy all the files
The dest dir already exists, so install_tree()'s not an option.
Diffstat (limited to 'var/spack/repos/builtin/packages/git')
-rw-r--r-- | var/spack/repos/builtin/packages/git/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py index f0f3bfc6ba..24657e54dc 100644 --- a/var/spack/repos/builtin/packages/git/package.py +++ b/var/spack/repos/builtin/packages/git/package.py @@ -24,6 +24,7 @@ ############################################################################## import sys from spack import * +from distutils.dir_util import copy_tree class Git(AutotoolsPackage): @@ -167,6 +168,10 @@ class Git(AutotoolsPackage): filter_file(r' -lrt$', '', 'Makefile') @run_after('install') + def install_completions(self): + copy_tree('contrib/completion', self.prefix.share) + + @run_after('install') def install_manpages(self): prefix = self.prefix |