summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-08-13 20:15:02 +0200
committerMichał Górny <mgorny@gentoo.org>2016-08-13 20:31:57 +0200
commita51e247a9d67d9900b0ed0b1999431b7250587ff (patch)
tree61da01f6c705ee7962260ffd7b226fd538b6fcd0 /app-shells/bash-completion/files
parentapp-shells/bash-completion: Bump to 2.4 (diff)
downloadgentoo-a51e247a9d67d9900b0ed0b1999431b7250587ff.tar.gz
gentoo-a51e247a9d67d9900b0ed0b1999431b7250587ff.tar.bz2
gentoo-a51e247a9d67d9900b0ed0b1999431b7250587ff.zip
app-shells/bash-completion: Prune old
Diffstat (limited to 'app-shells/bash-completion/files')
-rw-r--r--app-shells/bash-completion/files/bash-completion.pc9
-rw-r--r--app-shells/bash-completion/files/bash-completion.sh-gentoo-1.252
2 files changed, 0 insertions, 61 deletions
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