Gentoo Development Guide

BASH-COMPLETION-R1.ECLASS

Section: portage (5)
Updated: Aug 2014
Index Return to Main Contents
 

NAME

bash-completion-r1.eclass - A few quick functions to install bash-completion files  

EXAMPLE

EAPI=5

src_configure() {
        econf \
        --with-bash-completion-dir="$(get_bashcompdir)"
}

src_install() {
        default

        newbashcomp contrib/${PN}.bash-completion ${PN}
}
 

FUNCTIONS

get_bashcompdir
Get the bash-completion completions directory.
dobashcomp file [...]
Install bash-completion files passed as args. Has EAPI-dependant failure behavior (like doins).
newbashcomp file newname
Install bash-completion file under a new name. Has EAPI-dependant failure behavior (like newins).
 

MAINTAINERS

mgorny@gentoo.org
 

REPORTING BUGS

Please report bugs via http://bugs.gentoo.org/  

FILES

/usr/portage/eclass/bash-completion-r1.eclass  

SEE ALSO

ebuild(5)
http://sources.gentoo.org/eclass/bash-completion-r1.eclass?view=log


 

Index

NAME
EXAMPLE
FUNCTIONS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:09 GMT, August 28, 2014