On Thu, 1 Sep 2011 17:14:56 +0200 Ulrich Mueller <u...@gentoo.org> wrote:
> >>>>> On Thu, 1 Sep 2011, Michał Górny wrote: > > > So, here it goes. However, I'm not sure if that even deserves > > a dedicated function as the destination is pretty constant. > > > # @BLURB: A few quick functions to install bash-completion files > > # @DESCRIPTION: > > # A few simple functions to help installing bash-completion scripts. > > Looks somewhat redundant. Omit DESCRIPTION? Done. Also, added an example. If nobody has further objections, I'll commit this today. -- Best regards, Michał Górny
# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # @ECLASS: bash-completion-r1.eclass # @MAINTAINER: # mgo...@gentoo.org # @BLURB: A few quick functions to install bash-completion files # @EXAMPLE: # # @CODE # EAPI=4 # # src_install() { # autotools-utils_src_install # # newbashcomp contrib/${PN}.bash-completion ${PN} # } # @CODE # @FUNCTION: dobashcomp # @USAGE: file [...] # @DESCRIPTION: # Install bash-completion files passed as args. Has EAPI-dependant failure # behavior (like doins). dobashcomp() { debug-print-function ${FUNCNAME} "${@}" ( insinto /usr/share/bash-completion doins "${@}" ) } # @FUNCTION: newbashcomp # @USAGE: file newname # @DESCRIPTION: # Install bash-completion file under a new name. Has EAPI-dependant failure # behavior (like newins). newbashcomp() { debug-print-function ${FUNCNAME} "${@}" ( insinto /usr/share/bash-completion newins "${@}" ) }
signature.asc
Description: PGP signature