| 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-r1.eclass,v 1.1 2011/09/08 16:25:54 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.2 2011/09/08 20:28:29 mgorny Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: bash-completion-r1.eclass |
5 | # @ECLASS: bash-completion-r1.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # mgorny@gentoo.org |
7 | # mgorny@gentoo.org |
| 8 | # @BLURB: A few quick functions to install bash-completion files |
8 | # @BLURB: A few quick functions to install bash-completion files |
| … | |
… | |
| 15 | # default |
15 | # default |
| 16 | # |
16 | # |
| 17 | # newbashcomp contrib/${PN}.bash-completion ${PN} |
17 | # newbashcomp contrib/${PN}.bash-completion ${PN} |
| 18 | # } |
18 | # } |
| 19 | # @CODE |
19 | # @CODE |
|
|
20 | |
|
|
21 | case ${EAPI:-0} in |
|
|
22 | 0|1|2|3|4) ;; |
|
|
23 | *) die "EAPI ${EAPI} unsupported (yet)." |
|
|
24 | esac |
| 20 | |
25 | |
| 21 | # @FUNCTION: dobashcomp |
26 | # @FUNCTION: dobashcomp |
| 22 | # @USAGE: file [...] |
27 | # @USAGE: file [...] |
| 23 | # @DESCRIPTION: |
28 | # @DESCRIPTION: |
| 24 | # Install bash-completion files passed as args. Has EAPI-dependant failure |
29 | # Install bash-completion files passed as args. Has EAPI-dependant failure |