about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_dupload26
2 files changed, 31 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 39f684b8b..19c2c6bd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-26  Clint Adams  <clint@zsh.org>
+
+        * Gergely Nagy: 16291: Completion/Debian/Command/_dupload:
+        check ~/.dupload.conf, tweak sed expression to handle hooks.
+
 2001-11-21  Bart Schaefer  <schaefer@zsh.org>
 
 	* 16269: Src/Zle/compctl.c: Use allocated strings when adding
diff --git a/Completion/Debian/Command/_dupload b/Completion/Debian/Command/_dupload
new file mode 100644
index 000000000..81ac73f67
--- /dev/null
+++ b/Completion/Debian/Command/_dupload
@@ -0,0 +1,26 @@
+#compdef dupload
+
+if (( ! $+_dupload_sites )); then
+  _dupload_sites=(
+$(grep -hs "^\$cfg" /etc/dupload.conf ~/.dupload.conf | sed 's/^\$cfg{\([^}]*\)}.*$/\1/')
+)
+fi
+
+_arguments '--to:nickname[nickname of target site]:('"$_dupload_sites"')' \
+           '(--debug)-d[ftp verbosity]:debuglevel:' \
+           '(-d)--debug[ftp verbosity]:debuglevel:' \
+           '(--force)-f[upload ignoring logs]' \
+           '(-f)--force[upload ignoring logs]' \
+           '(--keep)-k[keep going, skip broken]' \
+           '(-k)--keep[keep going, skip broken]' \
+           '--no[dry run]' \
+           '--nomail[suppress announcement]' \
+           '--mailonly[dry run and real announcement]' \
+           '--noarchive[add anti-archival header]' \
+           '(--print)-p[print config legibly]' \
+           '(-p)--print[print config legibly]' \
+           '(--quiet)-q[quiet]' \
+           '(-q)--quiet[quiet]' \
+           '(--Version)-V[version]' \
+           '(-V)--Version[version]' \
+           '*:changes file:_files -g \*.changes' \