/[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.21 Revision 1.22
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.21 2009/02/21 20:17:01 darkside Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.22 2009/12/31 15:57:04 ulm 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#
19 19
20EXPORT_FUNCTIONS pkg_postinst 20EXPORT_FUNCTIONS pkg_postinst
21 21
22IUSE="bash-completion" 22IUSE="bash-completion"
23 23
24# Allow eclass to be inherited by eselect without a circular dependency
25if [[ ${CATEGORY}/${PN} != app-admin/eselect ]]; then
24RDEPEND="bash-completion? ( app-admin/eselect )" 26 RDEPEND="bash-completion? ( app-admin/eselect )"
27fi
25 28
26# @FUNCTION: dobashcompletion 29# @FUNCTION: dobashcompletion
27# @USAGE: < file > [ new_file ] 30# @USAGE: < file > [ new_file ]
28# @DESCRIPTION: 31# @DESCRIPTION:
29# First arg, <file>, is required and is the location of the bash-completion 32# First arg, <file>, is required and is the location of the bash-completion
46# @FUNCTION: bash-completion_pkg_postinst 49# @FUNCTION: bash-completion_pkg_postinst
47# @DESCRIPTION: 50# @DESCRIPTION:
48# The bash-completion pkg_postinst function, which is exported 51# The bash-completion pkg_postinst function, which is exported
49bash-completion_pkg_postinst() { 52bash-completion_pkg_postinst() {
50 if useq bash-completion ; then 53 if useq bash-completion ; then
51 elog "To enable command-line completion for ${PN}, run:" 54 elog "In the case that you haven't yet enabled command-line completion"
55 elog "for ${PN}, you can run:"
52 elog 56 elog
53 elog " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}" 57 elog " eselect bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
54 elog 58 elog
55 elog "to install locally, or" 59 elog "to install locally, or"
56 elog 60 elog

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20