/[gentoo-x86]/eclass/bash-completion.eclass
Gentoo

Diff of /eclass/bash-completion.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.18 Revision 1.19
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.18 2009/02/20 06:16:15 darkside Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.19 2009/02/20 06:22:15 darkside Exp $
4 4
5# @ECLASS: bash-completion.eclass 5# @ECLASS: bash-completion.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# shell-tools@gentoo.org. 7# shell-tools@gentoo.org.
8# 8#
46# @FUNCTION: bash-completion_pkg_postinst 46# @FUNCTION: bash-completion_pkg_postinst
47# @DESCRIPTION: 47# @DESCRIPTION:
48# The bash-completion pkg_postinst function, which is exported 48# The bash-completion pkg_postinst function, which is exported
49bash-completion_pkg_postinst() { 49bash-completion_pkg_postinst() {
50 if useq bash-completion ; then 50 if useq bash-completion ; then
51 echo
52 einfo "To enable command-line completion for ${PN}, run:" 51 elog "To enable command-line completion for ${PN}, run:"
53 einfo 52 elog
54 if has_version app-admin/eselect ; then
55 einfo " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}" 53 elog " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
56 else
57 einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}" 54 elog " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
58 einfo 55 elog
59 einfo "to install locally, or" 56 elog "to install locally, or"
60 einfo 57 elog
61 einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}" 58 elog " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
62 einfo 59 elog
63 einfo "to install system-wide." 60 elog "to install system-wide."
64 einfo "Read bash-completion-config(1) for more information." 61 elog "Read bash-completion-config(1) for more information."
65 fi
66 echo
67 fi 62 fi
68} 63}

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20