From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 12 May 2006 00:23:00 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20060511202300.GC7818@hell.immo.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qGV0fN9tzfkG3CxV" Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: [devel] I: zsh completion for hasher and gear X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 20:23:02 -0000 Archived-At: List-Archive: List-Post: --qGV0fN9tzfkG3CxV Content-Type: multipart/mixed; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable "=F7 =D3=D5=C2=C2=CF=D4=D5 =D3=CF=D3=D4=CF=C9=D4=D3=D1 =D7=C5=CC=CF=D3=C9= =D0=C5=C4=CE=D9=CA =D0=CF=C8=CF=C4 =C4=CC=D1 =CC=C0=C2=C9=D4=C5=CC=C5=CA = =DC=D4=CF=C7=CF =C4=C5=CC=C1. =FC=D4=CF=C7=CF =C4=C5=CC=C1 =C2=D2=C1=D4=D8 =D0=CF =C2=D5=D4=D9=CC=CB=C5 = =CE=C1 =CE=CF=D3." $ echo 'fpath=3D(~/.zsh/functions ~/.zsh/Completion $fpath)' >> ~/.zshenv $ cp _gear _hasher ~/.zsh/Completion =E9 =D2=C1=C4=D5=C5=CD=D3=D1 =D6=C9=DA=CE=C9. =F0=D2=CF=DB=D5 =D0=CF=D4=C5= =D3=D4=C9=D4=D8, =C5=D3=CC=C9 =D5=D3=D4=D2=C1=C9=D7=C1=C5=D4, =D0=CF=C4=D7= =C5=DB=D5 =D7 =C2=C1=C7=DA=C9=CC=CC=D5. --=20 Regards, Sir Raorn. --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=_hasher #compdef hsh hsh-install hsh-run hsh-shell local curcontext="$curcontext" packages common_opts ret=1 __sisyphus_check_tests () { local expl tests tests=( 'buildhost' 'buildtime' 'changelog' 'content' 'deps' 'description' 'fhs' 'gpg' 'gpgname' 'group' 'intersects' 'libtool' 'locales' 'nvr' 'packager' 'perms' 'printable' 'summary' ) _wanted tests expl test compadd -a "$@" - tests } common_opts=( '--hasher-priv-dir=[hasher-priv directory]:hasher-priv:_directories' '--number=[subconfig identifier]:number' '--save-fakeroot[save fakeroot state]' '(-v --verbose -q --quiet)'{-q,--quiet}'[try to be more quiet]' '(-v --verbose -q --quiet)'{-v,--verbose}'[print a message for each action]' '(- :)'{-V,--version}'[print program version and exit]' '(- :)'{-h,--help}'[show usage and exit]' ) case "$service" in hsh) if (( $words[(I)--(initroot|cleanup)-only] )); then packages= else packages='*:package:_files -g "*.(rpm|tar)"' fi _arguments -S \ $common_opts \ '--apt-config=[path to custom apt.conf file]:apt-config:_files' \ '--apt-prefix=[path to apt directory prefix]:apt-prefix:_directories' \ '--build-args=[extra arguments for rpmbuild]:rpmbuild args:' \ '(--initroot-only)--cleanup-only[do not build at all, just cleanup workdir]' \ '--eager-cleanup[cleanup build environment after each successful build]' \ '--lazy-cleanup[cleanup build environment before each new build]' \ '--excludedocs[do not install documentation files]' \ '(--cleanup-only)--initroot-only[do not build, stop after initroot stage]' \ '--install-langs=[colon-separated list of languages to install]:languages' \ '--mountpoints=[comma-separated list of known mount points]:mountpoints' \ '--no-cache[do not use initroot cache]' \ '--no-contents-indices[do not use content indices]' \ '(--repackage-source)--no-repackage-source[do not repackage source along with binaries]' \ '--no-sisyphus-check-in=[do not run sisyphus_check input tests]::sisyphus_check tests:__sisyphus_check_tests -S, -q' \ '--no-sisyphus-check=[do not run sisyphus_check tests]::sisyphus_check tests:__sisyphus_check_tests -S, -q' \ '--no-sisyphus-check-out=[do not run sisyphus_check output tests]::sisyphus_check tests:__sisyphus_check_tests -S, -q' \ '--nprocs=[number of CPUs to use]:number' \ '--pkg-build-list=[override default build package file list]:packages' \ '--pkg-init-list=[override default initial package file list]:packages' \ '(--query-req-prog)--query-repackage[repackage the source before query for requirements]' \ '(--query-repackage)--query-req-prog=[program to run to query for requirements]:query-req-prog:_files' \ '(--no-repackage-source)--repackage-source[repackage source along with binaries]' \ '--repo=[repository directory]:repository directory' \ '--target=[target architecture]:architecture' \ '(--with-stuff)--without-stuff[do not use built packages]' \ '(--without-stuff)--with-stuff[allow use of built packages]' \ ':workdir:_directories' \ $packages && ret=0 ;; hsh-install) _arguments -S \ $common_opts \ '--excludedocs[do not install documentation files]' \ ':workdir:_directories' \ '*:package' && ret=0 ;; hsh-run|hsh-shell) _arguments -S \ $common_opts \ '--builder[run program as builder]' \ '--execute=[copy given script to workdir and execute it]:script:_files' \ '--mountpoints=[comma-separated list of known mount points]:mountpoints' \ '--pty[redirect standard descriptors to controlling pty]' \ '--rooter=[run program as pseudoroot]' \ '--shell=[run interactive shell]::shell:_files' \ '--x11-timeout=[how long X11 authorization will be valid]:seconds' \ '(-x -X -Y)-x[disable X11 forwarding]' \ '(-x -X -Y)-X[enable X11 forwarding]' \ '(-x -X -Y)-Y[enable trusted X11 forwarding]' \ ':workdir:_directories' \ '(-):command name: _command_names -e' \ '*::arguments: _normal' && ret=0 ;; esac --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=_gear #compdef gear local curcontext="$curcontext" ret=1 _arguments -S \ '(-v --verbose -q --quiet)'{-q,--quiet}'[try to be more quiet]' \ '(-v --verbose -q --quiet)'{-v,--verbose}'[print a message for each action]' \ '(- :)'{-V,--version}'[print program version and exit]' \ '(- :)'{-h,--help}'[show usage and exit]' \ '(-r --rules)'{-r,--rules=}'[name of file with rules]:rules file:_files' \ '(-t --tree-ish)'{-t,--tree-ish=}'[tree, commit or tag object name]:tree-ish' \ - 'export' \ '(--export-dir --no-compress --bzip2 --gzip)--no-compress[do not compress output archive]' \ '(--export-dir --no-compress --bzip2 --gzip)--bzip2[compress output archive using bzip2]' \ '(--export-dir --no-compress --bzip2 --gzip)--gzip[compress output archive using gzip]' \ '(--no-compress --bzip2 --gzip :)--export-dir=[write source files to specified directory]:directory:_directories' \ ':output tarball:_files' \ - 'hasher' \ '--hasher[execute hsh-like command afterwards]' \ '(-):command: _command_names -e' \ '*::args: _normal' \ - 'rpmbuld' \ '--rpmbuild[execute rpmbuild-like command afterwards]' \ '(-):command: _command_names -e' \ '*::args: _normal' \ && ret=0 --KDt/GgjP6HVcx58l-- --qGV0fN9tzfkG3CxV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEY50kVqT7+fkT8woRAoOxAKCDkewrCXyAPE8kXrj7nWjFIbiXZgCg3QaN trOm8MJ/UkSZczKsMSUOlyc= =wGzj -----END PGP SIGNATURE----- --qGV0fN9tzfkG3CxV--