"Fossies" - the Fresh Open Source Software Archive

Member "bash-completion-2.9/completions/autoconf" (27 Apr 2019, 947 Bytes) of package /linux/privat/bash-completion-2.9.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "autoconf": 2.8_vs_2.9.

    1 # autoconf(1) completion                                   -*- shell-script -*-
    2 
    3 _autoconf()
    4 {
    5     local cur prev words cword split
    6     _init_completion -s || return
    7 
    8     case "$prev" in
    9         --help|-h|--version|-V|--trace|-t)
   10             return
   11             ;;
   12         --output|-o)
   13             _filedir
   14             return
   15             ;;
   16         --warnings|-W)
   17             local cats=( cross obsolete syntax )
   18             COMPREPLY=( $(compgen -W \
   19                 '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur") )
   20             return
   21             ;;
   22         --prepend-include|-B|--include|-I)
   23             _filedir -d
   24             return
   25             ;;
   26     esac
   27 
   28     $split && return
   29 
   30     if [[ "$cur" == -* ]]; then
   31         COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
   32         [[ $COMPREPLY == *= ]] && compopt -o nospace
   33         return
   34     fi
   35 
   36     _filedir '@(ac|in)'
   37 } &&
   38 complete -F _autoconf autoconf
   39 
   40 # ex: filetype=sh