diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2012-09-26 01:10:42 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:51:55 +0200 |
commit | 9664bee729d487bcc0a0bc35859f8e13d5421c75 (patch) | |
tree | b428a16618e36ed864a8d76ea3435e19a452bf90 /extra/source/bash-completion/contrib/slapt | |
parent | 75a4a592e5ccda30715f93563d741b83e0dcf39e (diff) | |
download | current-9664bee729d487bcc0a0bc35859f8e13d5421c75.tar.gz current-9664bee729d487bcc0a0bc35859f8e13d5421c75.tar.xz |
Slackware 14.0slackware-14.0
Wed Sep 26 01:10:42 UTC 2012
Slackware 14.0 x86_64 stable is released!
We're perfectionists here at Slackware, so this release has been a long
time a-brewing. But we think you'll agree that it was worth the wait.
Slackware 14.0 combines modern components, ease of use, and flexible
configuration... our "KISS" philosophy demands it.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
Thanks to everyone who helped make this happen. The Slackware team, the
upstream developers, and (of course) the awesome Slackware user
community.
Have fun! :-)
Diffstat (limited to 'extra/source/bash-completion/contrib/slapt')
-rw-r--r-- | extra/source/bash-completion/contrib/slapt | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/extra/source/bash-completion/contrib/slapt b/extra/source/bash-completion/contrib/slapt deleted file mode 100644 index 779465388..000000000 --- a/extra/source/bash-completion/contrib/slapt +++ /dev/null @@ -1,136 +0,0 @@ -# slapt-get and slapt-src completion - -have slapt-get && -_slapt_get() -{ - COMPREPLY=() - local cur prev - _get_comp_words_by_ref cur prev - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--download-only -d --simulate -s \ - --no-prompt -y --prompt -p --reinstall --ignore-excludes \ - --no-md5 --ignore-dep --no-dep --print-uris --show-stats -S \ - --config -c --remove-obsolete --retry --no-upgrade \ - --update -u --upgrade --dist-upgrade --install -i --install-set \ - --remove --show --filelist --search --list --available \ - --installed --clean --autoclean --add-keys \ - --version --help -h' -- "$cur" ) ) - return 0 - fi - - case $prev in - --config|-c) - _filedir - return 0 - ;; - --retry|--search) - # argument required but no completions available - return 0 - ;; - esac - - local words t - _get_comp_words_by_ref words - - # search for last action (--install|--install-set|--remove|--show|--filelist) - for (( i=${#words[@]}-1; i>0; i-- )); do - if [[ ${words[i]} == -@(i|-install|-show) ]]; then - t="all" - break - elif [[ ${words[i]} == --install-set ]]; then - t="set" - break - elif [[ ${words[i]} == --@(remove|filelist) ]]; then - t="ins" - break - fi - done - - case $t in - all) # --install|-i|--show - # slapt-get will fail to search for "^name-version" - # it can search for names only - local name=$( echo $cur | cut -f1 -d- ) - COMPREPLY=( $( slapt-get --search "^$name" 2> /dev/null | \ - sed -ne "/^$cur/{s/ .*$//;p}" ) ) - return 0 - ;; - ins) # --remove|--filelist - COMPREPLY=( $( cd /var/log/packages; compgen -f -- "$cur" ) ) - return 0 - ;; - set) # --install-set - COMPREPLY=( $( compgen -W 'a ap d e f k kde kdei l n t tcl x \ - xap y' -- "$cur" ) ) - return 0 - ;; - esac -} && complete -F _slapt_get slapt-get - -have slapt-src && -_slapt_src() -{ - COMPREPLY=() - local cur prev - _get_comp_words_by_ref cur prev - - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--update -u --list -l --clean -e \ - --search -s --show -w --install -i --build -b --fetch -f \ - --yes -y --config -c --no-dep -n --postprocess -p \ - --version -v --help -h' -- "$cur" ) ) - return 0 - fi - - case $prev in - --config|-c) - _filedir - return 0 - ;; - --search|-s|--postprocess|-p) - # argument required but no completions available - return 0 - ;; - esac - - local words - _get_comp_words_by_ref words - - local t - # search for last action (-i|-w|-b|-f) - for (( i=${#words[@]}-1; i>0; i-- )); do - if [[ ${words[i]} == -@(i|w|f|b|-install|-show|-build|-fetch) ]]; then - t="all" - break - fi - done - if [ "$t" != "all" ]; then - return 0 - fi - - local config="/etc/slapt-get/slapt-srcrc" # default config location - # search for config - for (( i=${#words[@]}-1; i>0; i-- )); do - if [[ ${words[i]} == -@(c|-config) ]]; then - config="${words[i+1]}" - break - fi - done - if [ ! -r "$config" ]; then - return 0 - fi - - local builddir=$( sed -ne "/^BUILDDIR=/{s/^BUILDDIR=//;p}" "$config" ) - if [ ! -d "$builddir" ]; then - return 0 - fi - - local slck_data="${builddir}/slackbuilds_data" - if [ ! -r "$slck_data" ]; then - return 0 - fi - - COMPREPLY=( $( sed -ne \ - "/^SLACKBUILD NAME: $cur/{s/^SLACKBUILD NAME: //;p}" "$slck_data" ) ) -} && complete -F _slapt_src slapt-src |