summaryrefslogtreecommitdiff
path: root/meta/classes/bash-completion.bbclass
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2016-01-14 14:56:31 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-29 18:14:54 +0000
commit80138689c2454781c21f0bcce92d8721c34c7405 (patch)
tree4896c161eeb00564de701c20d1d3f9fb8b93f51b /meta/classes/bash-completion.bbclass
parent2788bc07846f39adc10420dfb9d690c5da5469d9 (diff)
downloadopenembedded-core-80138689c2454781c21f0bcce92d8721c34c7405.tar.gz
openembedded-core-80138689c2454781c21f0bcce92d8721c34c7405.tar.bz2
openembedded-core-80138689c2454781c21f0bcce92d8721c34c7405.zip
bash-completion.bbclass: add class
Add bash-completion.bbclass which will package bash completion files in a subpackage ${PN}-bash-completion. Use of this class will ensure consitent handling of bash completions across recipes. Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/bash-completion.bbclass')
-rw-r--r--meta/classes/bash-completion.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/bash-completion.bbclass b/meta/classes/bash-completion.bbclass
new file mode 100644
index 0000000000..74a878edfc
--- /dev/null
+++ b/meta/classes/bash-completion.bbclass
@@ -0,0 +1,5 @@
+PACKAGES += "${PN}-bash-completion"
+
+FILES_${PN}-bash-completion = "${datadir}/bash-completion ${sysconfdir}/bash_completion.d"
+
+RDEPENDS_${PN}-bash-completion = "bash-completion"