From 3b9fa62452c636c49cc1bd19436e37882c76b88c Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 3 Apr 2014 22:56:57 -0400 Subject: clients: add bash-completion support Package and enable the bash completion suppor that comes with the various client packages. Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-neutronclient_git.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-neutronclient_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-neutronclient_git.bb b/meta-openstack/recipes-devtools/python/python-neutronclient_git.bb index 6d295c2..2aac1e9 100644 --- a/meta-openstack/recipes-devtools/python/python-neutronclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-neutronclient_git.bb @@ -27,3 +27,14 @@ SRCREV="6adb11703cb5b55a4af45e8524dc1039fb03176c" S = "${WORKDIR}/git" inherit setuptools + +PACKAGECONFIG ?= "bash-completion" +PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion ${BPN}-bash-completion" + +do_install_append() { + install -d ${D}/${sysconfdir}/bash_completion.d + install -m 664 ${S}/tools/neutron.bash_completion ${D}/${sysconfdir}/bash_completion.d +} + +PACKAGES =+ "${BPN}-bash-completion" +FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" -- cgit v1.2.3-54-g00ecf