From a51e247a9d67d9900b0ed0b1999431b7250587ff Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 13 Aug 2016 20:15:02 +0200 Subject: app-shells/bash-completion: Prune old --- .../bash-completion/files/bash-completion.pc | 9 ---- .../files/bash-completion.sh-gentoo-1.2 | 52 ---------------------- 2 files changed, 61 deletions(-) delete mode 100644 app-shells/bash-completion/files/bash-completion.pc delete mode 100644 app-shells/bash-completion/files/bash-completion.sh-gentoo-1.2 (limited to 'app-shells/bash-completion/files') diff --git a/app-shells/bash-completion/files/bash-completion.pc b/app-shells/bash-completion/files/bash-completion.pc deleted file mode 100644 index 0e5921f54496..000000000000 --- a/app-shells/bash-completion/files/bash-completion.pc +++ /dev/null @@ -1,9 +0,0 @@ -prefix=/usr -compatdir=/etc/bash_completion.d -completionsdir=${prefix}/share/bash-completion -helpersdir=${prefix}/share/bash-completion/helpers - -Name: bash-completion -Description: programmable completion for the bash shell -URL: http://bash-completion.alioth.debian.org/ -Version: 1.3 diff --git a/app-shells/bash-completion/files/bash-completion.sh-gentoo-1.2 b/app-shells/bash-completion/files/bash-completion.sh-gentoo-1.2 deleted file mode 100644 index b72bcbd93379..000000000000 --- a/app-shells/bash-completion/files/bash-completion.sh-gentoo-1.2 +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Id$ - -# Check for interactive bash and that we haven't already been sourced. -[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return - -# Check for recent enough version of bash. -bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} -if [ $bmajor -gt 3 ] || [ $bmajor -eq 3 -a $bminor -ge 2 ]; then - _load_completions() { - declare f x loaded_pre=false - for f; do - if [[ -f $f ]]; then - # Prevent loading base twice, initially and via glob - if $loaded_pre && [[ $f == */base ]]; then - continue - fi - - # Some modules, including base, depend on the definitions - # in .pre. See the ebuild for how this is created. - if ! $loaded_pre; then - if [[ ${BASH_COMPLETION-unset} == unset ]]; then - BASH_COMPLETION="@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/base" - fi - source "@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/.pre" - loaded_pre=true - fi - - source "$f" - fi - done - - # Clean up - $loaded_pre && source "@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/.post" - unset -f _load_completions # not designed to be called more than once - } - - # 1. Load base, if eselected. This was previously known as - # /etc/bash_completion - # 2. Load completion modules, maintained via eselect bashcomp --global - # 3. Load user completion modules, maintained via eselect bashcomp - # 4. Load user completion file last, overrides modules at user discretion - # This order is subject to change once upstream decides on something. - _load_completions \ - "@GENTOO_PORTAGE_EPREFIX@/etc/bash_completion.d/base" \ - ~/.bash_completion.d/base \ - "@GENTOO_PORTAGE_EPREFIX@/etc/bash_completion.d/"* \ - ~/.bash_completion.d/* \ - ~/.bash_completion -fi -unset bash bmajor bminor -- cgit v1.2.3-65-gdbad