summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2017-04-11 05:39:03 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-11 07:39:03 -0500
commit47aa8053e913be5954506bf96816cb0583536ccc (patch)
tree3cd5bd2374e0e687277693af6a65987d5f218846 /var
parent74b1f2b8601d719aabd8f512a57bf36f78d0a4fb (diff)
downloadspack-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')
-rw-r--r--var/spack/repos/builtin/packages/git/package.py5
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