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-cinderclient_git.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-cinderclient_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-cinderclient_git.bb b/meta-openstack/recipes-devtools/python/python-cinderclient_git.bb index 3c7293b..1f4e4a6 100644 --- a/meta-openstack/recipes-devtools/python/python-cinderclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinderclient_git.bb @@ -30,3 +30,14 @@ RDEPENDS_${PN} += "python-prettytable \ python-setuptools-git \ python-pbr \ " + +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/cinder.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