From 3b01959864997c8b74b5a005a01f671227ab64f6 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 22 Aug 2003 15:03:11 +0000 Subject: add new _pkgtool, _rar and _vorbis functions from 4.1 --- ChangeLog | 14 ++++++ Completion/Linux/Command/.distfiles | 2 +- Completion/Linux/Command/_pkgtool | 53 +++++++++++++++++++++ Completion/Unix/Command/.distfiles | 2 +- Completion/Unix/Command/_rar | 88 +++++++++++++++++++++++++++++++++++ Completion/Unix/Command/_vorbis | 91 +++++++++++++++++++++++++++++++++++++ 6 files changed, 248 insertions(+), 2 deletions(-) create mode 100644 Completion/Linux/Command/_pkgtool create mode 100644 Completion/Unix/Command/_rar create mode 100644 Completion/Unix/Command/_vorbis diff --git a/ChangeLog b/ChangeLog index f1f34ccc8..2060da77a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -47,6 +47,13 @@ 2003-07-24 Oliver Kiddle + * 18901: baptiste daroussin (and Nikolai Weibull, 18894): + Completion/Unix/Command/_vorbis: new completions for ogg vorbis + + * 18893: baptiste daroussin: Completion/Linux/Command/_pkgtool, + Completion/Unix/Command/_rar: improved _pkgtool and new + completions for rar/unrar + * 18900: Completion/Linux/Command/_iptables, Completion/Unix/Command/_nmap: new iptables and nmap completions @@ -105,6 +112,13 @@ * 18811: Completion/Unix/Type/_files: needed to quote % in substitution as users/6154 caused it to be interpreted as an anchor +2003-07-04 Peter Stephenson + + * 18807: baptiste daroussin : + Completion/Linux/Command/.distfiles, + Completion/Linux/Command/_pkgtool: Completion for Slackware + package management tool. + 2003-07-02 Oliver Kiddle * 18520, 13691 (Mario Lang), 13701 (Sven): diff --git a/Completion/Linux/Command/.distfiles b/Completion/Linux/Command/.distfiles index 5968b219d..a5445a0a7 100644 --- a/Completion/Linux/Command/.distfiles +++ b/Completion/Linux/Command/.distfiles @@ -1,4 +1,4 @@ DISTFILES_SRC=' .distfiles -_losetup _modutils _mondo _uml _valgrind +_iptables _losetup _modutils _mondo _pkgtool _uml _valgrind ' diff --git a/Completion/Linux/Command/_pkgtool b/Completion/Linux/Command/_pkgtool new file mode 100644 index 000000000..146467d36 --- /dev/null +++ b/Completion/Linux/Command/_pkgtool @@ -0,0 +1,53 @@ +#compdef installpkg upgradepkg removepkg pkgtool explodepkg makepkg + +case "$service" in + installpkg) + _arguments \ + '-warn[warn if files would be overwritten, but do not install]' \ + '-root=[specify alternate install location]:root directory:_path_files -/' \ + '-infobox[use dialog to draw an info box]' \ + '-menu[confirm package installation with a menu]' \ + "-ask[always ask on package installation regardless of package's priority]" \ + '-priority[provide a priority for the entire package list to use]:priority list:(ADD REC OPT SKP)' \ + '-tagfile[specify a different file to use for package priorities]:tagfile:_files -/' \ + '*:package file:_files -g \*.tgz' + ;; + + removepkg) + _arguments \ + '-warn[list which files & directories would be removed, skip actual removal]' \ + '-preserve[reconstruct complete package subtree in /tmp/preserved_packages]' \ + '-copy[construct a copy of the package in /tmp/preserved_packages]' \ + '-keep[save the intermediate files created]' \ + '*:package:_files -W /var/log/packages/ -/' + ;; + + upgradepkg) + _arguments \ + '--install-new[install new packages in addition to upgrading existing ones]' \ + '--reinstall[upgrade even when the same version is already installed]' \ + '--verbose[show all the gory details of the upgrade]' \ + '*:package file:_files -g \*.tgz' + ;; + + explodepkg) + _wanted file expl 'package file' _files -g \*.tgz + ;; + + makepkg) + _arguments -s \ + '(--linkadd -l)'{--linkadd,-l}'[move symlinks into doinst.sh]:answer:(y n)' \ + '(--chown -c)'{--chown,-c}'[reset all permissions to root:root 755]:answer:(y n)' + ;; + + pkgtool) + _arguments \ + "-sets[install the disk sets A, B, C]" \ + "(-source_device)-source_mounted[don't attempt to unmount and remount source device with each disk]" \ + '-ignore_tagfile[install every package encountered regardless of tagfiles]' \ + '-tagfile[specify tagfile to be used for the installation]:tagfile:_files -/' \ + '-source_dir[specify directory containing each disk subdirectory]:source directory:_path_files -/' \ + '-target_dir[specify directory where the target root directory is located]:target directory:_path_files -W -/' \ + '(-source_mounted)-source_device[specify source device to install from]:source device:{compadd "$expl[@]" /dev/*}' + ;; +esac diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles index 854fdd4c1..8eb4718bf 100644 --- a/Completion/Unix/Command/.distfiles +++ b/Completion/Unix/Command/.distfiles @@ -20,5 +20,5 @@ _chkconfig _cdcd _irssi _sccs _texinfo _ant _global _global_tags _figlet _ifconfig _last _larch _lsof _mt _xmlsoft _elinks _tidy _python _antiword _renice _sablotron _cdrecord _aap _du -_subversion +_rar _vorbis _subversion ' diff --git a/Completion/Unix/Command/_rar b/Completion/Unix/Command/_rar new file mode 100644 index 000000000..910989437 --- /dev/null +++ b/Completion/Unix/Command/_rar @@ -0,0 +1,88 @@ +#compdef rar unrar + +local common + +common=( + '-ad[append archive name to destination path]' + '-ap[set path inside archive]' + '-av\-[disable authenticity verification check]' + '-c\-[disable comments show]' + '-cfg\-[disable read configuration]' + '-cl\-[convert names to lower case]' + '-cu[convert names to upper case]' + '-dh[open shared files]' + '-ep[exclude paths from name]' + '-f[freshen files]' + '-idp[disable percentage display]' + '-ierr[send all messages to stderr]' + '-inul[disable all messages]' + '-kb[keep broken extracted files]' + '-o\+[overwrite existing files]' + '-o\-[do not overwrite existing files]' + '-ow[save or restore file owner and group]' + '-p\-[do not query password]' + '-r[recurse subdirectorie]' + '-ta[process files modified after in YYYYMMDDHHMMSS format]' + '-tb[process files modified before in YYYYMMDDHHMMSS format]' + '-tn[process files newer than