Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2010 23:42:33 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r210981 - user/dougb/portmaster/files
Message-ID:  <201008062342.o76NgXMV066738@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougb
Date: Fri Aug  6 23:42:33 2010
New Revision: 210981
URL: http://svn.freebsd.org/changeset/base/210981

Log:
  Add version 1.7 from ports/ports-mgmt/portmaster/files/

Added:
  user/dougb/portmaster/files/zsh-completions

Added: user/dougb/portmaster/files/zsh-completions
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/dougb/portmaster/files/zsh-completions	Fri Aug  6 23:42:33 2010	(r210981)
@@ -0,0 +1,81 @@
+#compdef portmaster
+# for portmaster 2.18
+
+local context state line array ret=1
+typeset -A opt_args
+
+_arguments -A "-*" : \
+  "--force-config['make config' for all ports]" \
+  "-C[prevents 'make clean' from being run before building]" \
+  "(-F)-G[prevents recursive 'make config' (overrides --force-config)]" \
+  "-H[hide details of the port build and install in a log file]" \
+  "-K[prevents 'make clean' from being run after building]" \
+  "(-b)-B[prevents creation of the backup package for the installed port]" \
+  "(-B)-b[create and keep a backup package of an installed port]" \
+  "-g[create a package of the new port]" \
+  "-n[run through configure, but do not make or install any ports]" \
+  "-t[recurse dependencies thoroughly, using all-depends-array]" \
+  "-v[verbose output]" \
+  "-w[save old shared libraries before deinstall]" \
+  "(-i)-f[always rebuild ports (overrides -i)]" \
+  "(-f)-i[interactive update -- ask whether to rebuild ports]" \
+  "(-d)-D[no cleaning of distfiles]" \
+  "(-D)-d[always clean distfiles]" \
+  "-m[arguments for the 'make' command line]:arguments for make: " \
+  "-x[avoid building or updating ports that match this pattern]:glob pattern to exclude from building:->pkgs" \
+  "--no-confirm[do not ask user to confirm list of ports to be installed and/or updated before proceeding]" \
+  "--no-term-title[do not update the xterm title bar]" \
+  "--no-index-fetch[skip fetching the INDEX file]" \
+  "--index[use INDEX exclusively to check if a port is up to date]" \
+  "--index-first[use the INDEX for status, but double-check with the port]" \
+  "--index-only[do not try to use /usr/ports]" \
+  "--show-work[list what ports are and would be installed]" \
+  "-o[replace the installed port with a port from a different origin]:new port dir in /usr/ports:->ports" \
+  "-r[rebuild port, and all ports that depend on it]:name/glob of port in /var/db/pkg:->pkgs" \
+  "-R[used with -\[rf\] to skip ports updated on a previous run]" \
+  "-a[check all ports, update as necessary]" \
+  "--delete-build-only[delete ports that are build-only dependencies after a successful run]" \
+  {-P,--packages}"[use packages, but build port if not available]" \
+  {-PP,--packages-only}"[fail if no package is available]" \
+  "--packages-build[use packages for all build dependencies]" \
+  "--packages-if-newer[use package if newer than installed even if the package is not the latest]" \
+  "--always-fetch[fetch package even if it already exists locally]" \
+  "--local-packagedir=-[where local packages can be found]:path:_files -/" \
+  "--packages-local[use packages from --local-packagedir only]" \
+  "--delete-packages[after installing from a package, delete it]" \
+  "-l[list all installed ports by category]" \
+  "-L[list all installed ports by category, and search for updates]" \
+  "-e[expunge a port via pkg_delete, and remove its distfiles]:full name of port directory in /var/db/pkg:->pkgs" \
+  "-s[clean out stale ports that used to be depended on]" \
+  "(-G)-F[fetch distfiles only]" \
+  "--clean-distfiles[offer to delete stale distfiles]" \
+  "--clean-distfiles-all[delete stale distfiles without prompting]" \
+  "--check-depends[cross-check and update dependency information for all ports]" \
+  "--check-port-dbdir[check for stale entries in /var/db/ports]" \
+  "--list-origins[list directories from /usr/ports for root and leaf ports]" \
+  "(-h --help)"{-h,--help}"[display help message]" \
+  "--version[display the version number]" \
+  '*:Packages and Ports:->pkgs_ports'
+
+case "$state" in
+  pkgs)
+    array=("${PKG_DBDIR:-/var/db/pkg}"/*(/:t))
+    _describe -t packages "installed ports" array
+    ;;
+  ports)
+    _files -X "%Bports%b" -W "${PORTSDIR:-/usr/ports}" -/
+    ;;
+  pkgs_ports)
+    _tags packages ports
+    while _tags; do
+      if _requested packages; then
+        array=("${PKG_DBDIR:-/var/db/pkg}"/*(/:t))
+        _describe -t packages "installed ports" array && ret=0
+      fi
+      if _requested ports; then
+        _files -X "%Bports%b" -W "${PORTSDIR:-/usr/ports}" -/ && ret=0
+      fi
+      (( ret )) || return ret
+    done
+    ;;
+esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008062342.o76NgXMV066738>