| 1 |
# /usr/share/bash-completion/completions/dh_make |
| 2 |
# Bash command completion for 'dh_make(1)'. |
| 3 |
# |
| 4 |
|
| 5 |
_dh-make() |
| 6 |
{ |
| 7 |
local cur prev options |
| 8 |
|
| 9 |
COMPREPLY=() |
| 10 |
cur=${COMP_WORDS[COMP_CWORD]} |
| 11 |
prev=${COMP_WORDS[COMP_CWORD-1]} |
| 12 |
options='-a --addmissing -c --copyright --copyrightfile -d --defaultless\ |
| 13 |
--docs -e --email -f --file -n --native -o --overlay\ |
| 14 |
-p --packagename -t --templates -y --yes\ |
| 15 |
--createorig --with-emacs -C --packageclass\ |
| 16 |
-s --single -i --indep -l --library --python\ |
| 17 |
-h --help -v --version' |
| 18 |
|
| 19 |
package_class="s i l p" |
| 20 |
package_license="apache artistic bsd gpl gpl2 gpl3 isc lgpl lgpl2 lgpl3\ |
| 21 |
expat custom" |
| 22 |
case $prev in |
| 23 |
-c | --copyright) |
| 24 |
COMPREPLY=( $( compgen -W "$package_license") ) |
| 25 |
;; |
| 26 |
-C | --packageclass) |
| 27 |
COMPREPLY=( $( compgen -W "$package_class" ) ) |
| 28 |
;; |
| 29 |
--copyrightfile | -o | --overlay | -t | --templates) |
| 30 |
COMPREPLY=( $( compgen -o "dirnames") ) |
| 31 |
;; |
| 32 |
-f | --file) |
| 33 |
COMPREPLY=( $( compgen -o "filenames") ) |
| 34 |
;; |
| 35 |
-e | --email | -p | --packagename) |
| 36 |
;; |
| 37 |
*) |
| 38 |
COMPREPLY=( $( |
| 39 |
compgen -W "$options" | grep "^$cur" |
| 40 |
) ) |
| 41 |
;; |
| 42 |
esac |
| 43 |
|
| 44 |
return 0 |
| 45 |
|
| 46 |
} |
| 47 |
complete -F _dh-make dh_make |
| 48 |
# |
| 49 |
# vim: fileencoding=utf-8 filetype=sh expandtab shiftwidth=4 : |