summaryrefslogtreecommitdiff
path: root/usr/src/tools/depcheck/get_depend_info.1onbld
blob: 1983732e2f77cc732a52c6c1f3ff5c8a4baf9ba9 (plain)
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
'\" t
.\" 
.\" CDDL HEADER START
.\" 
.\" The contents of this file are subject to the terms of the
.\" Common Development and Distribution License, Version 1.0 only
.\" (the "License").  You may not use this file except in compliance
.\" with the License.
.\" 
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
.\" or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions
.\" and limitations under the License.
.\" 
.\" When distributing Covered Code, include this CDDL HEADER in each
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
.\" If applicable, add the following below this CDDL HEADER, with the
.\" fields enclosed by brackets "[]" replaced with your own identifying
.\" information: Portions Copyright [yyyy] [name of copyright owner]
.\" 
.\" CDDL HEADER END
.\" 
.\" 
.\" Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
.\" Use is subject to license terms.
.\" 
.TH GET_DEPEND_INFO 1ONBLD "Nov 2, 2000"
.SH "NAME"
get_depend_info \- get dependency information about a package or a file
.SH "SYNOPSIS"
.PP
.nf
\fBget_depend_info\fR [-\fBcons\fR] \-\fBdbdir\fR \fIdbm_database_pathname\fR
                [-\fBf\fR | -\fBp\fR] [-\fBh\fR] [-\fBroot\fR \fIroot_pathname\fR]
                [-\fBs\fR] [-\fBpkg\fR \fISUN_package\fR | \fIfilename\fR \&...]
.fi
.SH "DESCRIPTION"
.PP
The \fBget_depend_info\fR command prints dependency information about a package,
a file, or a set of files on the standard output\&.
.SH "OPTIONS"
.PP
The following options are supported:
.sp
.ne 2
\fB-\fBcons\fR\fR
.in +16n
Turns on conservative mode, that is, refrains from using
\fB/usr/bin/strings\fR\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBdbdir\fR\fR
.in +16n
Specifies the directory in which the Perl DBM databases generated by
\fBmake_pkg_db\fR(1ONBLD) are located\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBf\fR\fR
.in +16n
Outputs file dependencies only\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBh\fR\fR
.in +16n
Displays help\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBp\fR\fR
.in +16n
Outputs package dependencies only\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBpkg\fR\fR
.in +16n
Specifies a particular package on which you want to run the dependency
analysis\&. You must specify this option if you specify either a Sun software
package or a third-party software package that conforms with the Sun package
format (\fISUN_package\fR)\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBroot\fR\fR
.in +16n
Specifies an alternate root\&. You must also use the -\fBpkg\fR option if you
use this option\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
\fB-\fBs\fR\fR
.in +16n
Outputs symbolic links for files or packages only\&.
.sp
.sp 1
.in -16n
.SH "OPERANDS"
.PP
The following operands are supported:
.sp
.ne 2
\fB\fIdbm_database_pathname\fR\fR
.in +24n
Specifies the path name of the directory in which the Perl DBM databases
generated by \fBmake_pkg_db\fR are located\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
\fB\fIfilename\fR\fR
.in +24n
Specifies the name of a file or files on which you want to run the dependency
analysis\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
\fB\fIroot_pathname\fR\fR
.in +24n
Specifies the path name of an alternate root you want to use\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
\fB\fISUN_package\fR\fR
.in +24n
Specifies the name of a particular Sun software package (or any third-party
software package that conforms with the Sun package format) on which you want
to run the dependency analysis\&. You must use the -\fBpkg\fR option if you
specify this operand\&.
.sp
.sp 1
.in -24n
.PP
You can specify either a Sun software package or a file name, but not both\&.
.SH "EXAMPLES"
.PP
\fBExample 1:\fR To Get a Dependency Analysis of Two Particular Files
.PP
.nf
% get_depend_info -dbdir MyDir /usr/bin/ls /usr/bin/man
.fi
.PP
\fBExample 2:\fR To Get a Dependency Analysis of Files Using a Wild Card
.PP
.nf
% get_depend_info -dbdir MyDir /usr/sbin/*
.fi
.PP
\fBExample 3:\fR To Get a Dependency Analysis of a Package in Sun Format
.PP
.nf
% get_depend_info -dbdir MyDir -pkg NSCPcom
% get_depend_info -dbdir MyDir -pkg SUNWnisu
.fi
.PP
\fBExample 4:\fR To Display Help
.PP
.nf
% get_depend_info -h
.fi
.SH "ATTRIBUTES"
.PP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Availability	SUNWonbld
CSI	Enabled
Interface Stability	Evolving
MT-Level	Unsafe
.TE
.sp
.SH "SEE ALSO"
.PP
\fBmake_pkg_db\fR(1ONBLD), \fBattributes\fR(5)