diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-09-08 19:06:46 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-09-08 19:06:46 +0000 |
commit | 8e7edf22e740d93579a09369ce468d7024f97b0c (patch) | |
tree | 013aea5ed2c40c87e26bea93861098a1abd5459e /eclass/bash-completion.eclass | |
parent | Marked ~sparc-solaris (diff) | |
download | gentoo-2-8e7edf22e740d93579a09369ce468d7024f97b0c.tar.gz gentoo-2-8e7edf22e740d93579a09369ce468d7024f97b0c.tar.bz2 gentoo-2-8e7edf22e740d93579a09369ce468d7024f97b0c.zip |
Deprecate in favor of -r1.
Diffstat (limited to 'eclass/bash-completion.eclass')
-rw-r--r-- | eclass/bash-completion.eclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass index 842c2ef88a41..c226878c5fd7 100644 --- a/eclass/bash-completion.eclass +++ b/eclass/bash-completion.eclass @@ -1,6 +1,10 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.27 2011/08/22 04:46:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.28 2011/09/08 19:06:46 mgorny Exp $ + +# @DEPRECATED +# This eclass has been superseded by bash-completion-r1 eclass. +# Please modify your ebuilds to use that one instead. # @ECLASS: bash-completion.eclass # @MAINTAINER: @@ -12,6 +16,9 @@ # Simple eclass that provides an interface for installing # contributed (ie not included in bash-completion proper) # bash-completion scripts. +# +# Note: this eclass has been deprecated in favor of bash-completion-r1. Please +# use that one instead. # @ECLASS-VARIABLE: BASHCOMPLETION_NAME # @DESCRIPTION: @@ -22,6 +29,8 @@ # Space delimited list of files to install if dobashcompletion is called without # arguments. +inherit eutils + EXPORT_FUNCTIONS pkg_postinst IUSE="bash-completion" @@ -43,6 +52,9 @@ PDEPEND="bash-completion? ( app-shells/bash-completion )" dobashcompletion() { local f + eqawarn "bash-completion.eclass has been deprecated." + eqawarn "Please update your ebuilds to use bash-completion-r1 instead." + if [[ -z ${1} && -z ${BASHCOMPFILES} ]]; then die "Usage: dobashcompletion [file] [new file]" fi |