From 9cd0ddd828a395f4b6687a2b7a17f2f3ecc738fc Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 25 Dec 2004 16:27:24 +0000 Subject: * 20637: Completion/Debian/Command/_lintian: add completion for 'lintian', a Debian package checker. --- ChangeLog | 3 +++ Completion/Debian/Command/.distfiles | 2 +- Completion/Debian/Command/_lintian | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Completion/Debian/Command/_lintian diff --git a/ChangeLog b/ChangeLog index 4ad6a715b..7b57a4e54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-12-25 Clint Adams + * 20637: Completion/Debian/Command/_lintian: add + completion for 'lintian', a Debian package checker. + * 20636: Completion/Unix/Command/_bogofilter: add completion for 'bogofilter' and 'bogotune' commands. diff --git a/Completion/Debian/Command/.distfiles b/Completion/Debian/Command/.distfiles index 7f7ea1363..c95767d09 100644 --- a/Completion/Debian/Command/.distfiles +++ b/Completion/Debian/Command/.distfiles @@ -4,5 +4,5 @@ _apt _bts _dpkg _update-alternatives _aptitude _bug _dpkg_source _update-rc.d _apt-move _debchange _dput _apt-show-versions _debfoster _dupload -_auto-apt _debsign _make-kpkg +_auto-apt _debsign _lintian _make-kpkg ' diff --git a/Completion/Debian/Command/_lintian b/Completion/Debian/Command/_lintian new file mode 100644 index 000000000..61878b368 --- /dev/null +++ b/Completion/Debian/Command/_lintian @@ -0,0 +1,36 @@ +#compdef lintian + +_arguments \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-S,--setup-lab}'[setup or update the laboratory]' \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-R,--remove-lab}'[remove the laboratory directory]' \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-c,--check}'[run all checks over the specified packages]' \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-C,--check-part}'[run only the specified checks]:checks:_values -s , "lintian checks" binaries bin changelog-file chg conffiles cnf control-file dctrl control-files ctl copyright-file cpy cruft deb deb-format dfmt debconf dc debdiff dif debian-readme drm debhelper dh description des etcfiles etc fields fld files fil huge-usr-share hus infofiles info init.d ini manpages man md5sums md5 menus men menu-format mnf perl prl po-debconf pd scripts scr shared-libs shl spelling splr standards-version std' \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-X,--dont-check-part}'[run only the specified checks]:checks:_values -s , "lintian checks" binaries bin changelog-file chg conffiles cnf control-file dctrl control-files ctl copyright-file cpy cruft deb deb-format dfmt debconf dc debdiff dif debian-readme drm debhelper dh description des etcfiles etc fields fld files fil huge-usr-share hus infofiles info init.d ini manpages man md5sums md5 menus men menu-format mnf perl prl po-debconf pd scripts scr shared-libs shl spelling splr standards-version std' \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-u,--unpack}'[unpack up to unpack level]' \ +'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-r,--remove}'[clean packages up to current unpack level]' \ +'(-h --help)'{-h,--help}'[help]' \ +'(-v --verbose)'{-v,--verbose}'[verbose]' \ +'(-V --version)'{-V,--version}'[version]' \ +'(-d --debug)'{-d,--debug}'[debug]' \ +'--print-version[print unadorned version number]' \ +'(-i --info)'{-i,--info}'[print info about violations]' \ +'(-I --display-info)'{-I,--display-info}'[also display informational tags]' \ +'(-l --unpack-level)'{-l,--unpack-level}'[unpack level]:default unpack level:(0 1 2 none basic contents)' \ +'(-o --no-override)'{-o,--no-override}'[do not use the overrides file]' \ +'--show-overrides[output tags that have been overridden]' \ +'(-U --unpack-info)'{-U,--unpack-info}'[collect informations]:infos:_values -s , "collectibles" changelog-file copyright-file debfiles debian-readme diffstat doc-base-files file-info init.d md5sums menu-files objdump-info override-file scripts source-control-file' \ +'(-m --md5sums)'{-m,--md5sums}'[check md5sums when processing a .changes file]' \ +'--allow-root[override warning when run with superuser privileges]' \ +'--cfg:config file:_files' \ +'--lab:laboratory dir:_files -/' \ +'--archivedir:archive directory:_files -/' \ +'--dist:distribution:(woody sarge sid)' \ +'--section:release:(main contrib non-free)' \ +'--arch:architecture:(alpha arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc)' \ +'--root:root directory:_files -/' \ +'(-a --all)'{-a,--all}'[check all packages in the distribution]' \ +'(-b --binary)'{-b,--binary}'[the following packages are binary]' \ +'(-s --source)'{-s,--source}'[the following packages are source]' \ +'--udeb[the following packages are udebs]' \ +'(-p --packages-file)'{-p,--packages-file}'[process packages listed in file]:list:_files' \ +':package:_files -g "*.(changes|deb|dsc)"' -- cgit 1.4.1