Lines 1-11
Link Here
|
1 |
#compdef portmaster |
1 |
#compdef portmaster |
2 |
# For portmaster 2.11 |
2 |
# for portmaster 2.17 |
3 |
|
3 |
|
4 |
local context state line array ret=1 |
4 |
local context state line array ret=1 |
5 |
typeset -A opt_args |
5 |
typeset -A opt_args |
6 |
|
6 |
|
7 |
_arguments -A "-*" : \ |
7 |
_arguments -A "-*" : \ |
8 |
"--force-config['make config' for all ports (must be first option)]" \ |
8 |
"--force-config['make config' for all ports]" \ |
9 |
"-C[prevents 'make clean' from being run before building]" \ |
9 |
"-C[prevents 'make clean' from being run before building]" \ |
10 |
"(-F)-G[prevents recursive 'make config' (overrides --force-config)]" \ |
10 |
"(-F)-G[prevents recursive 'make config' (overrides --force-config)]" \ |
11 |
"-H[hide details of the port build and install in a log file]" \ |
11 |
"-H[hide details of the port build and install in a log file]" \ |
Lines 17-38
Link Here
|
17 |
"-t[recurse dependencies thoroughly, using all-depends-array]" \ |
17 |
"-t[recurse dependencies thoroughly, using all-depends-array]" \ |
18 |
"-v[verbose output]" \ |
18 |
"-v[verbose output]" \ |
19 |
"-w[save old shared libraries before deinstall]" \ |
19 |
"-w[save old shared libraries before deinstall]" \ |
20 |
"-u[DEPRECATED]" \ |
20 |
"(-i)-f[always rebuild ports (overrides -i)]" \ |
21 |
"-f[always rebuild ports (overrides -i)]" \ |
|
|
22 |
"(-f)-i[interactive update -- ask whether to rebuild ports]" \ |
21 |
"(-f)-i[interactive update -- ask whether to rebuild ports]" \ |
23 |
"(-d)-D[no cleaning of distfiles]" \ |
22 |
"(-d)-D[no cleaning of distfiles]" \ |
24 |
"(-D)-d[always clean distfiles]" \ |
23 |
"(-D)-d[always clean distfiles]" \ |
25 |
"-m[<arguments for the 'make' command line>]:arguments for make: " \ |
24 |
"-m[arguments for the 'make' command line]:arguments for make: " \ |
26 |
"-x[<avoid building or updating ports that match this pattern>]:glob pattern to exclude from building:->pkgs" \ |
25 |
"-x[avoid building or updating ports that match this pattern]:glob pattern to exclude from building:->pkgs" \ |
27 |
"-p[specify the full path to a port directory]:port directory in /usr/ports:->ports" \ |
26 |
"--no-confirm[do not ask user to confirm list of ports to be installed and/or updated before proceeding]" \ |
28 |
"--show-work[array what ports are and would be installed]" \ |
27 |
"--show-work[list what ports are and would be installed]" \ |
29 |
"-o[replace the installed port with a port from a different origin]:new port dir in /usr/ports:->ports" \ |
28 |
"-o[replace the installed port with a port from a different origin]:new port dir in /usr/ports:->ports" \ |
30 |
"-r[rebuild port, and all ports that depend on it]:name/glob of port in /var/db/pkg:->pkgs" \ |
29 |
"-r[rebuild port, and all ports that depend on it]:name/glob of port in /var/db/pkg:->pkgs" \ |
31 |
"-R[used with -\[rf\] to skip ports updated on a previous run]" \ |
30 |
"-R[used with -\[rf\] to skip ports updated on a previous run]" \ |
32 |
"-a[check all ports, update as necessary]" \ |
31 |
"-a[check all ports, update as necessary]" \ |
33 |
"-l[array installed ports by category]" \ |
32 |
"--delete-build-only[delete ports that are build-only dependencies after a successful run]" \ |
34 |
"-L[array installed ports by category, and search for updates]" \ |
33 |
{-P,--packages}"[use packages, but build port if not available]" \ |
35 |
"-e[expunge a port via pkg_delete, and remove its distfiles]:name of port directory in /var/db/pkg:->pkgs" \ |
34 |
{-PP,--packages-only}"[fail if no package is available]" \ |
|
|
35 |
"--packages-build[use packages for all build dependencies]" \ |
36 |
"--packages-if-newer[use package if newer than installed even if the package is not the latest]" \ |
37 |
"--always-fetch[fetch package even if it already exists locally]" \ |
38 |
"--local-packagedir=-[where local packages can be found]:path:_files -/" \ |
39 |
"-l[list all installed ports by category]" \ |
40 |
"-L[list all installed ports by category, and search for updates]" \ |
41 |
"-e[expunge a port via pkg_delete, and remove its distfiles]:full name of port directory in /var/db/pkg:->pkgs" \ |
36 |
"-s[clean out stale ports that used to be depended on]" \ |
42 |
"-s[clean out stale ports that used to be depended on]" \ |
37 |
"(-G)-F[fetch distfiles only]" \ |
43 |
"(-G)-F[fetch distfiles only]" \ |
38 |
"--clean-distfiles[offer to delete stale distfiles]" \ |
44 |
"--clean-distfiles[offer to delete stale distfiles]" \ |
Lines 40-46
Link Here
|
40 |
"--check-depends[cross-check and update dependency information for all ports]" \ |
46 |
"--check-depends[cross-check and update dependency information for all ports]" \ |
41 |
"--check-port-dbdir[check for stale entries in /var/db/ports]" \ |
47 |
"--check-port-dbdir[check for stale entries in /var/db/ports]" \ |
42 |
"--list-origins[list directories from /usr/ports for root and leaf ports]" \ |
48 |
"--list-origins[list directories from /usr/ports for root and leaf ports]" \ |
43 |
"(-h --help)"{-h,--help}"[display this help message]" \ |
49 |
"(-h --help)"{-h,--help}"[display help message]" \ |
44 |
"--version[display the version number]" \ |
50 |
"--version[display the version number]" \ |
45 |
'*:Packages and Ports:->pkgs_ports' |
51 |
'*:Packages and Ports:->pkgs_ports' |