diff options
author | 2005-05-08 01:35:58 +0000 | |
---|---|---|
committer | 2005-05-08 01:35:58 +0000 | |
commit | 8c2b350ac44547ffe9761491b13f764665f6ee03 (patch) | |
tree | 44f9e653a166ac14cabfbe387f2652e5dca0aa8b /eclass/bash-completion.eclass | |
parent | Keepdir /var/run/mpd (diff) | |
download | gentoo-2-8c2b350ac44547ffe9761491b13f764665f6ee03.tar.gz gentoo-2-8c2b350ac44547ffe9761491b13f764665f6ee03.tar.bz2 gentoo-2-8c2b350ac44547ffe9761491b13f764665f6ee03.zip |
Update pkg_postinst to display eclectic instructions if it's installed.
Diffstat (limited to 'eclass/bash-completion.eclass')
-rw-r--r-- | eclass/bash-completion.eclass | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass index a7260368d579..f109dd47393c 100644 --- a/eclass/bash-completion.eclass +++ b/eclass/bash-completion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.10 2005/04/17 13:39:21 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.11 2005/05/08 01:35:58 ka0ttic Exp $ # # Simple eclass that provides an interface for installing # contributed (ie not included in bash-completion proper) @@ -43,14 +43,18 @@ bash-completion_pkg_postinst() { echo einfo "To enable command-line completion for ${PN}, run:" einfo - einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}" - einfo - einfo "to install locally, or" - einfo - einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}" - einfo - einfo "to install system-wide." - einfo "Read bash-completion-config(1) for more information." + if has_version app-admin/eclectic ; then + einfo " eclectic bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}" + else + einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}" + einfo + einfo "to install locally, or" + einfo + einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}" + einfo + einfo "to install system-wide." + einfo "Read bash-completion-config(1) for more information." + fi echo fi } |