diff options
author | Fabio Erculiani <lxnay@gentoo.org> | 2013-10-20 09:33:52 +0000 |
---|---|---|
committer | Fabio Erculiani <lxnay@gentoo.org> | 2013-10-20 09:33:52 +0000 |
commit | 2e68db4e604ec5ab338a6af60b703910f871e914 (patch) | |
tree | e7fff70220eb844a716d579459aeb9e2a3e7a7ae /sys-kernel | |
parent | Correct the keyword declaration (diff) | |
download | gentoo-2-2e68db4e604ec5ab338a6af60b703910f871e914.tar.gz gentoo-2-2e68db4e604ec5ab338a6af60b703910f871e914.tar.bz2 gentoo-2-2e68db4e604ec5ab338a6af60b703910f871e914.zip |
drop unused files in FILESDIR
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key ADC916E5)
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/genkernel-next/ChangeLog | 6 | ||||
-rw-r--r-- | sys-kernel/genkernel-next/files/genkernel.bash | 73 | ||||
-rw-r--r-- | sys-kernel/genkernel-next/files/initramfs.mounts | 23 |
3 files changed, 5 insertions, 97 deletions
diff --git a/sys-kernel/genkernel-next/ChangeLog b/sys-kernel/genkernel-next/ChangeLog index 60561d7eefde..5cd88ec4c55d 100644 --- a/sys-kernel/genkernel-next/ChangeLog +++ b/sys-kernel/genkernel-next/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-kernel/genkernel-next # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/genkernel-next/ChangeLog,v 1.22 2013/10/20 09:32:16 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/genkernel-next/ChangeLog,v 1.23 2013/10/20 09:33:52 lxnay Exp $ + + 20 Oct 2013; Fabio Erculiani <lxnay@gentoo.org> -files/genkernel.bash, + -files/initramfs.mounts: + drop unused files in FILESDIR *genkernel-next-37 (20 Oct 2013) diff --git a/sys-kernel/genkernel-next/files/genkernel.bash b/sys-kernel/genkernel-next/files/genkernel.bash deleted file mode 100644 index 965ec2257f19..000000000000 --- a/sys-kernel/genkernel-next/files/genkernel.bash +++ /dev/null @@ -1,73 +0,0 @@ -# genkernel (8) completion -# Copyright 2006-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# Written by Aron Griffis <agriffis@gentoo.org> - -_genkernel() -{ - declare cur prev genkernel_help actions params - COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} - prev=${COMP_WORDS[COMP_CWORD-1]} - - # extract initial list of params/actions from genkernel --help - genkernel_help=$(command genkernel --help) - actions=( $(<<<"$genkernel_help" sed -n \ - '/^Available Actions:/,/^$/s/^[[:space:]]\+\([^[:space:]]\+\).*/\1/p') ) - params=( $(<<<"$genkernel_help" egrep -oe '--[^[:space:]]{2,}') ) - - # attempt to complete the current parameter based on the list - COMPREPLY=($(compgen -W "${params[*]/=*/=} ${actions[*]}" -- "$cur")) - - # if we don't have a rhs to complete - if [[ ${#COMPREPLY[@]} -gt 1 ]]; then - return - elif [[ ${#COMPREPLY[@]} -eq 0 && $cur != --*=* ]]; then - return - elif [[ ${#COMPREPLY[@]} -eq 1 && $COMPREPLY != --*= ]]; then - # using nospace completion, add an explicit space - COMPREPLY="${COMPREPLY} " - return - fi - - # we have a unique lhs and need to complete the rhs - declare args lhs rhs - if [[ ${#COMPREPLY[@]} -eq 1 ]]; then - lhs=$COMPREPLY - else - lhs=${cur%%=*}= - rhs=${cur#*=} - fi - - # genkernel's help gives clues as to what belongs on the rhs. - # extract the clue for the current parameter - args=" ${params[*]} " - args="${args##* $lhs}" - args="${args%% *}" - - # generate a list of completions for the argument; this replaces args with - # an array of results - args=( $(case $args in - ('<0-5>') compgen -W "$(echo {1..5})" -- "$rhs" ;; - ('<outfile>'|'<file>') compgen -A file -o plusdirs -- "$rhs" ;; - ('<dir>') compgen -A directory -S / -- "$rhs" ;; - ('<tbz2>') compgen -G '*.tbz2' -G '*.tar.bz2' -o plusdirs -- "$rhs" ;; - (*) compgen -o bashdefault -- "$rhs" ;; # punt - esac) ) - - # we're using nospace completion to prevent spaces after paths that aren't - # "done" yet. So do some hacking to the args to add spaces after - # non-directories. - declare slash=/ - args=( "${args[@]/%/ }" ) # add space to all - args=( "${args[@]/%$slash /$slash}" ) # remove space from dirs - - # recreate COMPREPLY - if [[ $cur == "$lhs"* ]]; then - COMPREPLY=( "${args[@]}" ) - elif [[ ${#args[@]} -gt 0 ]]; then - COMPREPLY=( "${args[@]/#/$lhs}" ) - fi -} - -complete -o nospace -F _genkernel genkernel diff --git a/sys-kernel/genkernel-next/files/initramfs.mounts b/sys-kernel/genkernel-next/files/initramfs.mounts deleted file mode 100644 index b34c67502307..000000000000 --- a/sys-kernel/genkernel-next/files/initramfs.mounts +++ /dev/null @@ -1,23 +0,0 @@ -# This specifies which mounts from your fstab should be mounted before -# switching to the real root. If this file is missing, genkernel's code will -# default to just "/usr", which will suffice on most systems with a seperate -# /usr mount. -# -# If you have a complex configuration with a bindmount or symlink at /usr, or -# need some other mountpoints at boot, you should update this file such that -# /usr and anything else needed will be available after the switch into the -# real root. -# -# The lines without comments in this file are used as exact matches against the -# second column of your /etc/fstab and the device, fstype and mount options are -# taken from that line in fstab. If no line matches, the line from this file -# will be ignored. -# - -/usr - -# If you had some need of these: -#/usr/local -#/opt -#/var -#/home |