Skip to content
Permalink
Browse files

port: Remove dead code for old help output

  • Loading branch information
raimue committed Mar 28, 2018
1 parent 8201d10 commit 4669303249883e96eedbb212e9828b00c4a9c4e1
Showing with 0 additions and 68 deletions.
  1. +0 −68 src/port/port.tcl
@@ -62,74 +62,6 @@ proc print_usage {{verbose 1}} {
}
}

proc print_help {args} {
global action_array

print_usage 0

# Generate and format the command list from the action_array
set cmds ""
set lineLen 0
foreach cmd [lsort [array names action_array]] {
if {$lineLen > 65} {
set cmds "$cmds,\n"
set lineLen 0
}
if {$lineLen == 0} {
set new "$cmd"
} else {
set new ", $cmd"
}
incr lineLen [string length $new]
set cmds "$cmds$new"
}

set cmdText "Supported actions
------------------
$cmds
"

set text {
Pseudo-portnames
----------------
Pseudo-portnames are words that may be used in place of a portname, and
which expand to some set of ports. The common pseudo-portnames are:
all, current, active, inactive, actinact, installed, uninstalled, outdated,
obsolete, requested, unrequested and leaves.
These pseudo-portnames expand to the set of ports named.

Pseudo-portnames starting with variants:, variant:, description:, depends:,
depends_lib:, depends_run:, depends_build:, depends_fetch:, depends_extract:,
depends_patch:, depends_test:,
portdir:, homepage:, epoch:, platforms:, platform:, name:, long_description:,
maintainers:, maintainer:, categories:, category:, version:, revision:, and
license: each select a set of ports based on a regex search of metadata
about the ports. In all such cases, a standard regex pattern following
the colon will be used to select the set of ports to which the
pseudo-portname expands.

Pseudo-portnames starting with depof:, rdepof:, rdepends:, dependentof:, and
rdependentof: select ports that are direct or recursive dependencies or
dependents of the following portname, respectively.

Portnames that contain standard glob characters will be expanded to the
set of ports matching the glob pattern.

Port expressions
----------------
Portnames, port glob patterns, and pseudo-portnames may be logically
combined using expressions consisting of and, or, not, !, (, and ).

For more information
--------------------
See man pages: port(1), macports.conf(5), portfile(7), portgroup(7),
porthier(7), portstyle(7). Also, see https://www.macports.org.
}

puts "$cmdText$text"
}


# Produce error message and exit
proc fatal s {
global argv0

0 comments on commit 4669303

Please sign in to comment.
You can’t perform that action at this time.