/[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.27 Revision 1.28
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.27 2011/08/22 04:46:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.28 2011/09/08 19:06:46 mgorny Exp $
4
5# @DEPRECATED
6# This eclass has been superseded by bash-completion-r1 eclass.
7# Please modify your ebuilds to use that one instead.
4 8
5# @ECLASS: bash-completion.eclass 9# @ECLASS: bash-completion.eclass
6# @MAINTAINER: 10# @MAINTAINER:
7# shell-tools@gentoo.org. 11# shell-tools@gentoo.org.
8# @AUTHOR: 12# @AUTHOR:
10# @BLURB: An Interface for installing contributed bash-completion scripts 14# @BLURB: An Interface for installing contributed bash-completion scripts
11# @DESCRIPTION: 15# @DESCRIPTION:
12# Simple eclass that provides an interface for installing 16# Simple eclass that provides an interface for installing
13# contributed (ie not included in bash-completion proper) 17# contributed (ie not included in bash-completion proper)
14# bash-completion scripts. 18# bash-completion scripts.
19#
20# Note: this eclass has been deprecated in favor of bash-completion-r1. Please
21# use that one instead.
15 22
16# @ECLASS-VARIABLE: BASHCOMPLETION_NAME 23# @ECLASS-VARIABLE: BASHCOMPLETION_NAME
17# @DESCRIPTION: 24# @DESCRIPTION:
18# Install the completion script with this name (see also dobashcompletion) 25# Install the completion script with this name (see also dobashcompletion)
19 26
20# @ECLASS-VARIABLE: BASHCOMPFILES 27# @ECLASS-VARIABLE: BASHCOMPFILES
21# @DESCRIPTION: 28# @DESCRIPTION:
22# Space delimited list of files to install if dobashcompletion is called without 29# Space delimited list of files to install if dobashcompletion is called without
23# arguments. 30# arguments.
31
32inherit eutils
24 33
25EXPORT_FUNCTIONS pkg_postinst 34EXPORT_FUNCTIONS pkg_postinst
26 35
27IUSE="bash-completion" 36IUSE="bash-completion"
28 37
40# the script will be installed as. If BASHCOMPLETION_NAME is set, it overrides 49# the script will be installed as. If BASHCOMPLETION_NAME is set, it overrides
41# the second argument. If no second argument is given and BASHCOMPLETION_NAME 50# the second argument. If no second argument is given and BASHCOMPLETION_NAME
42# is not set, it will default to ${PN}. 51# is not set, it will default to ${PN}.
43dobashcompletion() { 52dobashcompletion() {
44 local f 53 local f
54
55 eqawarn "bash-completion.eclass has been deprecated."
56 eqawarn "Please update your ebuilds to use bash-completion-r1 instead."
45 57
46 if [[ -z ${1} && -z ${BASHCOMPFILES} ]]; then 58 if [[ -z ${1} && -z ${BASHCOMPFILES} ]]; then
47 die "Usage: dobashcompletion [file] [new file]" 59 die "Usage: dobashcompletion [file] [new file]"
48 fi 60 fi
49 61

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20