summaryrefslogtreecommitdiff
path: root/man/1/disdep
blob: 1107cd9886d56cdda5a8b858ac89b8ff19176982 (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
.TH DISDEP 1
.SH NAME
disdep \- print load dependencies for Dis file
.SH SYNOPSIS
.B disdep
[
.B -a
]
[
.B -d
]
[
.B -o
]
[
.B -p
]
[
.B -s
]
.I file
\&...
.SH DESCRIPTION
.B Disdep
reads each
.IR file ,
which must be a Dis object file,
and finds all unique strings in it that end in
.BR .dis .
It takes each such string as the name of a Dis file, and
if the file exists, it does the same for it, and so on, recursively.
It writes each unique name to the standard output.
The result is a list of all statically-named Dis files that might be referenced by
an application, typically as the operand of a Limbo
.B load
operator.
Several options change or extend the output:
.TP
.B -a
Print all names as they are encountered in the search, including duplicates.
.TP
.B -d
Indent to show the dependency structure.
.TP
.B -o
Show only the immediate (outermost) dependencies of each
.IR file .
.TP
.B -p
Print the dependency relation as pairs:
a file, a space, and the name of a file on which it depends.
Only the the first name is printed when a file depends on no other.
This format is useful as input to
.IR mk (10.1)
dependency generators, or dependency graphing programs.
.TP
.B -s
Include strings of the form
.B
\&"$[A-Z].*"
on the assumption
they are the names of system modules loaded by the application.
.SH SOURCE
.B /appl/cmd/disdep.b
.SH "SEE ALSO"
.IR limbo (1)
.SH BUGS
It cannot see file names that the program calculates.