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

Diff of /eclass/bash-completion-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.9 2013/07/23 13:48:00 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.10 2013/09/10 19:12:17 ssuominen 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
55# @DESCRIPTION: 55# @DESCRIPTION:
56# Get unprefixed bash-completion completions directory. 56# Get unprefixed bash-completion completions directory.
57_bash-completion-r1_get_bashcompdir() { 57_bash-completion-r1_get_bashcompdir() {
58 debug-print-function ${FUNCNAME} "${@}" 58 debug-print-function ${FUNCNAME} "${@}"
59 59
60 if has_version '<app-shells/bash-completion-2.1-r1'; then 60 if has_version '>=app-shells/bash-completion-2.1-r1'; then
61 _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion/completions
62 else
61 _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion 63 _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion
62 else
63 _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion/completions
64 fi 64 fi
65} 65}
66 66
67# @FUNCTION: _bash-completion-r1_get_helpersdir 67# @FUNCTION: _bash-completion-r1_get_helpersdir
68# @INTERNAL 68# @INTERNAL

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20