about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-11-15 19:39:13 +0000
committerClint Adams <clint@users.sourceforge.net>2001-11-15 19:39:13 +0000
commit3a8d9c08903924404a02a9e5b645f92fc1ad547f (patch)
tree40199c25af4470f02d71cb057aef4dc150f80759 /Completion/Debian
parenta642cc3274548b1f918555bb9ac776bc01c0f556 (diff)
downloadzsh-3a8d9c08903924404a02a9e5b645f92fc1ad547f.tar.gz
zsh-3a8d9c08903924404a02a9e5b645f92fc1ad547f.tar.xz
zsh-3a8d9c08903924404a02a9e5b645f92fc1ad547f.zip
16257: completion for dput from Tollef Fog Heen <tollef@add.no>
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Command/.distfiles4
-rw-r--r--Completion/Debian/Command/_dput29
2 files changed, 32 insertions, 1 deletions
diff --git a/Completion/Debian/Command/.distfiles b/Completion/Debian/Command/.distfiles
index 0da6eee28..c1e902091 100644
--- a/Completion/Debian/Command/.distfiles
+++ b/Completion/Debian/Command/.distfiles
@@ -1,5 +1,7 @@
 DISTFILES_SRC='
 .distfiles
-_apt	_bts	_bug	_dpkg         _dpkg_source  _dupload
+_apt
+_bts	_bug
+_debchange _dpkg       _dpkg_source  _dput  _dupload
 _update-alternatives
 '
diff --git a/Completion/Debian/Command/_dput b/Completion/Debian/Command/_dput
new file mode 100644
index 000000000..39d2973bc
--- /dev/null
+++ b/Completion/Debian/Command/_dput
@@ -0,0 +1,29 @@
+#compdef dput
+
+if (( ! $+_dput_sites )); then
+  _dput_sites=(
+$(grep "^\[" /etc/dput.cf | sed -e 's,\[,,g' -e 's,\],,g')
+)
+fi
+
+_arguments '(-c)--config[config file]:config file:' \
+           '(--config)-c[config file]:config file:' \
+           '(--debug)-d[debug mode]' \
+           '(-d)--debug[debug mode]' \
+           '(--dinstall)-D[run dinstall after upload]' \
+           '(-D)--dinstall[run dinstall after upload]' \
+           '(--force)-f[force upload of already uploaded package]' \
+           '(-f)--force[force upload of already uploaded package]' \
+           '(--lintian)-l[run lintian before upload]' \
+           '(-l)--lintian[run lintian before upload]' \
+           '(-o)--check-only[check the package, do not upload]' \
+           '(--check-only)-o[check the package, do not upload]' \
+           '(--print)-p[print configuration]' \
+           '(-p)--print[print configuration]' \
+           '(--simulate)-s[simulate an upload only]' \
+           '(-s)--simulate[simulate an upload only]' \
+           '(--unchecked)-u[do not check GPG signature on the changes file]' \
+           '(-u)--unchecked[do not check GPG signature on the changes file]' \
+           '(-v)--version[version]' \
+           '(--version)-v[version]' \
+           '*:changes file:_files -g \*.changes' \