/[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.3 Revision 1.4
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.3 2004/10/30 23:13:44 ka0ttic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.4 2004/10/31 12:59:10 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#
25 25
26dobashcompletion() { 26dobashcompletion() {
27 [ -z "$1" ] && die "usage: dobashcompletion <file> <new file>" 27 [ -z "$1" ] && die "usage: dobashcompletion <file> <new file>"
28 if useq bash-completion ; then 28 if useq bash-completion ; then
29 insinto /usr/share/bash-completion 29 insinto /usr/share/bash-completion
30 newins "$1" "${2:-${1##*/}}" 30 newins "$1" "${2:-${1##*/}}" || die "Failed to install $1"
31 fi 31 fi
32} 32}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20