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-ceilometerclient_git.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-ceilometerclient_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-ceilometerclient_git.bb b/meta-openstack/recipes-devtools/python/python-ceilometerclient_git.bb index c7c6ff4..dce3e12 100644 --- a/meta-openstack/recipes-devtools/python/python-ceilometerclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-ceilometerclient_git.bb @@ -30,3 +30,15 @@ SRCREV="6f4ec9dc96477131c90040ee00f5535e50d5f914" 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/ceilometer.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