/[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.8 Revision 1.9
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2005 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.8 2005/01/02 11:56:08 ka0ttic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.9 2005/03/14 10:45:11 ka0ttic Exp $
4# 4#
5# Simple eclass that provides an interface for installing 5# Simple eclass that provides an interface for installing
6# contributed (ie not included in bash-completion proper) 6# contributed (ie not included in bash-completion proper)
7# bash-completion scripts. 7# bash-completion scripts.
8# 8#
19RDEPEND="${RDEPEND} 19RDEPEND="${RDEPEND}
20 bash-completion? ( app-shells/bash-completion-config )" 20 bash-completion? ( app-shells/bash-completion-config )"
21 21
22# dobashcompletion <file> <new file> 22# dobashcompletion <file> <new file>
23# First arg, <file>, is required and is the location of the bash-completion 23# First arg, <file>, is required and is the location of the bash-completion
24# script to install. Second arg, <new file>, is optional and specifies an 24# script to install. If the variable BASH_COMPLETION_NAME is set in the
25# alternate filename to install as. 25# ebuild, dobashcompletion will install <file> as
26# /usr/share/bash-completion/$BASH_COMPLETION_NAME. If it is not set,
27# dobashcompletion will check if a second arg ($2) was passed, installing as
28# the specified name. Failing both these checks, dobashcompletion will
29# install the file as /usr/share/bash-completion/${PN}.
26 30
27dobashcompletion() { 31dobashcompletion() {
28 [[ -z "$1" ]] && die "usage: dobashcompletion <file> <new file>" 32 [[ -z "$1" ]] && die "usage: dobashcompletion <file> <new file>"
29 [[ -z "${BASH_COMPLETION_NAME}" ]] && BASH_COMPLETION_NAME="${2:-${PN}}" 33 [[ -z "${BASH_COMPLETION_NAME}" ]] && BASH_COMPLETION_NAME="${2:-${PN}}"
30 34

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20