about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-06-12 03:01:09 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-06-12 03:01:09 +0000
commita18711c642702bb935c4d988e3cf8567956d814d (patch)
tree1955a8d46e436d766caab4066939d5d2bf8e032c /Completion/Debian
parent1ab7131e467916674aee8a32e629719314a804c0 (diff)
downloadzsh-a18711c642702bb935c4d988e3cf8567956d814d.tar.gz
zsh-a18711c642702bb935c4d988e3cf8567956d814d.tar.xz
zsh-a18711c642702bb935c4d988e3cf8567956d814d.zip
Merge of 21686, 23178, and 23183.
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Command/_make-kpkg57
1 files changed, 57 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_make-kpkg b/Completion/Debian/Command/_make-kpkg
new file mode 100644
index 000000000..8d5eff037
--- /dev/null
+++ b/Completion/Debian/Command/_make-kpkg
@@ -0,0 +1,57 @@
+#compdef make-kpkg
+
+local context state line
+typeset -A opt_args
+
+_arguments \
+   '--help[display help message]' \
+   '--revision[change Debian revision number]:number:' \
+   '--append-to-version[specify additional kernel sub-version]:suffix:' \
+   '--added-modules[specify add-on modules]:module list:->addedmodules' \
+   '--added-patches[specify additional patches]:patches list' \
+   '--arch[specify architecture for cross-compilation]:architecture' \
+   '--cross-compile[specify target string]:target' \
+   '--subarch[specify subarchitecture]:subarchitecture:' \
+   '--arch-in-name[include architecture in kernel image name]' \
+   '--pgpsign[sign changes file]:name' \
+   '--config[specify configuration target]:target:(oldconfig config menuconfig xconfig old menu x)' \
+   '--targets[list known targets]' \
+   '--noexec[pass -n option to make]' \
+   '--verbose[show top level make commands]' \
+   '--initrd[create image suitable for initrd]' \
+   '(--bzimage)--zimage[make zImage instead of bzImage]' \
+   '(--zimage)--bzimage[make bzImage instead of zImage]' \
+   '--mkimage[command that produces an initrd image given a directory]:command:' \
+   '--rootcmd[specify command for gaining root access]:root command:(sudo fakeroot)' \
+   '--stem:package name stem:(kernel linux)' \
+   '--us[unsigned source]' \
+   '--uc[unsigned changelog]' \
+   '*:target:(( \
+        clean\:"clean the kernel source directory" \
+        buildpackage\:"runs the targets clean and binary" \
+        binary\:"all kernel packages" \
+        binary-indep\:"arch independent packages" \
+        binary-arch\:"arch dependent packages" \
+        kernel-source\:"package of the kernel sources" \
+        kernel-headers\:"package of the header files included in the kernel" \
+        kernel_manual\:"package of the manual pages included in the kernel" \
+        kernel-doc\:"package of teh documentation included in the kernel" \
+        kernel-image\:"package of the kernel image" \
+        build\:"compiles the kernel" \
+        modules\:"build all add-on modules" \
+        modules_config\:"configure all add-on modules" \
+        modules_image\:"build all add-on modules, but wirhou source and diff files" \
+        modules_clean\:"clean add-on modules" \
+        configure\:"configure the kernel" \
+        debian\:"creates the debian/ directory" \
+        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