Changeset 15665 for trunk/base
- Timestamp:
- Jan 1, 2006, 3:24:48 PM (18 years ago)
- Location:
- trunk/base/src/port
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/port.1
r15506 r15665 37 37 .Sh SYNOPSIS 38 38 .Nm 39 .Op Fl vdqfon ausbckt39 .Op Fl vdqfonusbckt 40 40 .Op Fl D Ar portdir 41 41 .Ar action … … 201 201 .It Fl n 202 202 dont follow dependencies in upgrade (only for upgrading) 203 .It Fl a204 upgrade all installed ports (only for upgrading)205 203 .It Fl u 206 204 uninstall non-active ports when upgrading and uninstalling … … 281 279 Upgrade the installed 282 280 .Ar portname . 283 To upgrade all ports, use284 .Fl a .285 281 For example: 286 282 .Pp 287 283 .Dl "port upgrade vim" 288 .Dl "port -a upgrade" 284 .Pp 285 To upgrade all installed ports: 286 .Pp 287 .Dl "port upgrade installed" 289 288 .Pp 290 289 To upgrade -
trunk/base/src/port/port.tcl
r15616 r15665 3 3 exec @TCLSH@ "$0" "$@" 4 4 # port.tcl 5 # $Id: port.tcl,v 1.14 4 2005/12/29 02:34:36olegb Exp $5 # $Id: port.tcl,v 1.145 2006/01/01 15:24:48 olegb Exp $ 6 6 # 7 7 # Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org> … … 139 139 proc print_usage args { 140 140 global cmdname 141 set usage { [-vdqfon asbcktu] [-D portdir] action [actionflags]141 set usage { [-vdqfonsbcktu] [-D portdir] action [actionflags] 142 142 [[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]... 143 143 } … … 151 151 global cmdname 152 152 153 set help { [-vdqfon asbcktu] [-D portdir] action [actionflags]153 set help { [-vdqfonsbcktu] [-D portdir] action [actionflags] 154 154 [[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]... 155 155 … … 1118 1118 o { set global_options(ports_ignore_older) yes } 1119 1119 n { set global_options(ports_nodeps) yes } 1120 a { set global_options(port_upgrade_all) yes }1121 1120 u { set global_options(port_uninstall_old) yes } 1122 1121 s { set global_options(ports_source_only) yes } … … 1351 1350 1352 1351 upgrade { 1353 if {[info exists global_options(port_upgrade_all)] } { 1354 # if -a then upgrade all installed ports 1355 # (union these to any other ports user has in the port list) 1356 set portlist [opUnion $portlist [get_installed_ports]] 1357 } else { 1358 # Otherwise if the user has supplied no ports we'll use the current port 1359 require_portlist 1360 } 1352 # Otherwise if the user has supplied no ports we'll use the current port 1353 require_portlist 1361 1354 1362 1355 foreachport $portlist {
Note: See TracChangeset
for help on using the changeset viewer.