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

Contents of /eclass/bash-completion.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Oct 26 22:28:22 2004 UTC (9 years, 10 months ago) by ka0ttic
Branch: MAIN
Initial commit.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4 #
5 # Simple eclass that provides an interface for installing
6 # contributed (ie not included in bash-completion proper)
7 # bash-completion scripts.
8 #
9 # Author: Aaron Walker <ka0ttic@gentoo.org>
10 #
11 # Please assign any bug reports to shell-tools@gentoo.org.
12
13 ECLASS="bash-completion"
14 INHERITED="${INHERITED} ${ECLASS}"
15
16 IUSE="${IUSE} bash-completion"
17 RDEPEND="bash-completion? ( app-shells/bash-completion )"
18
19 # dobashcompletion <file> <new file>
20 # First arg, <file>, is required and is the location of the bash-completion
21 # script to install. Second arg, <new file>, is optional and specifies an
22 # alternate filename to install as.
23
24 dobashcompletion() {
25 [ -z "$1" ] && die "usage: dobashcompletion <file> <new file>"
26 if useq bash-completion ; then
27 insinto /usr/share/bash-completion
28 newins "$1" "${2:-${1##*/}}"
29 fi
30 }

  ViewVC Help
Powered by ViewVC 1.1.20