mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-19 03:31:14 +02:00
23183 complete comma-separated list of directories/modules for --added-modules.
This commit is contained in:
parent
910d446ca7
commit
b5720e1f60
2 changed files with 20 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-02-22 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 23183: Completion/Debian/Command/_make-kpkg:
|
||||||
|
complete comma-separated list of directories/modules
|
||||||
|
for --added-modules.
|
||||||
|
|
||||||
2007-02-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2007-02-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* unposted: Src/utils.c: document some limitations of
|
* unposted: Src/utils.c: document some limitations of
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
#compdef make-kpkg
|
#compdef make-kpkg
|
||||||
|
|
||||||
|
local context state line
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'--help[display help message]' \
|
'--help[display help message]' \
|
||||||
'--revision[change Debian revision number]:number:' \
|
'--revision[change Debian revision number]:number:' \
|
||||||
'--append-to-version[specify additional kernel sub-version]:suffix:' \
|
'--append-to-version[specify additional kernel sub-version]:suffix:' \
|
||||||
'--added-modules[specify add-on modules]:module list:' \
|
'--added-modules[specify add-on modules]:module list:->addedmodules' \
|
||||||
'--added-patches[specify additional patches]:patches list' \
|
'--added-patches[specify additional patches]:patches list' \
|
||||||
'--arch[specify architecture for cross-compilation]:architecture' \
|
'--arch[specify architecture for cross-compilation]:architecture' \
|
||||||
'--cross-compile[specify target string]:target' \
|
'--cross-compile[specify target string]:target' \
|
||||||
|
@ -42,4 +45,13 @@ _arguments \
|
||||||
configure\:"configure the kernel" \
|
configure\:"configure the kernel" \
|
||||||
debian\:"creates the debian/ directory" \
|
debian\:"creates the debian/ directory" \
|
||||||
libc-kheaders\:"create the kernel headers package needed by libc" \
|
libc-kheaders\:"create the kernel headers package needed by libc" \
|
||||||
))'
|
))' && return 0
|
||||||
|
|
||||||
|
case "$state" in
|
||||||
|
(addedmodules)
|
||||||
|
compset -P '*,'
|
||||||
|
_alternative \
|
||||||
|
'moddirs:module dirs:_files -/ -S ,' \
|
||||||
|
'modules:loc module dirs:_files -/ -W ${MODULE_LOC:-/usr/src/modules} -S ,'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in a new issue