aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portless/files/portless.1
blob: 0c8dcb5b6c6954f4f5ed141cdf7ac67c8ddad1bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
.\" Copyright (c) 2006 Martin Kammerhofer
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)portless.1,v 1.10 2006/08/30 09:36:44 martin Exp
.\"
.\" Note: The date here should be updated whenever a non-trivial
.\" change is made to the manual page.
.Dd August 30, 2006
.Dt PORTLESS 1
.Os
.Sh NAME
.Nm portless
.Nd "quickly browse port descriptions"
.Sh SYNOPSIS
.Nm
.Op Fl dfIiMmp
.Op Fl P Ar pager
.Ar portglob...
.Nm
.Op Fl W | w
.Ar portglob...
.Sh DESCRIPTION
.Nm
lets FreeBSD users quickly browse port descriptions given the port's
name or a (shell type) glob.
.Pp
The options are as follows:
.Bl -tag -width ".Fl P Ar pager"
.It Fl d
Display the
.Pa pkg-descr
file of the port. This is the default.
.It Fl f
Take the
.Ar portglob
argument literal (not as a shell glob).
.It Fl I
Ignore case when matching
.Ar portglob
against the ports tree. This option is only effective if
.Ar portglob
contains at least one unquoted globbing meta-character (
.Sq Li * ,
.Sq Li \&? ,
or
.Sq Li [
).
.It Fl i
Display the
.Pa distinfo
file of the port.
.It Fl M
Display the
.Pa Makefile
file of the port.
.It Fl m
Display the
.Pa pkg-message
file of the port.
.It Fl p
Display the
.Pa pkg-plist
file of the port.
.It Fl P Ar pager
Use the specified
.Ar pager
program to display matching files. This overrides the setting of the
.Ev PAGER
environment variable.
.It Fl w
Rather than browsing files inside the ports tree just echo the names
of directories matching
.Ar portglob
to stdout.
.It Fl W
Like
.Fl w
but echoes just the last two components of the directory (i.e.\&
.Em category/portname
) to stdout.
.El
.Lp
Options
.Fl W
and
.Fl w
are incompatible with all other options.
.Sh ENVIRONMENT
The
.Nm
command uses the following environment variables:
.Bl -tag -width "Ev PORTSDIR" -compact -offset indent
.It Ev PAGER
defaults to
.Dq Pa less\ -e
.It Ev PORTSDIR
defaults to
.Pa /usr/ports
.El
.Sh FILES
.Bl -tag -width ".Pa /usr/ports/*/*/*" -compact
.It Pa /usr/ports/*/*/*
.El
.Sh EXAMPLES
The following are examples of typical usage of the
.Nm
command:
.Pp
.Dl "portless cvsweb\e*"
.Dl "portless lang/\e*doc"
.Dl "portless 'www/*python*'"
.Sh SEE ALSO
.Xr ports_glob 1
from the
.Pa sysutils/portupgrade
port
.Sh AUTHOR
The
.Nm
utility and this manual page were written by
.An Martin Kammerhofer Aq mkamm@gmx.net .
.\" EOF