386BSD 0.1 development
[unix-history] / usr / src / usr.bin / soelim / soelim.1
CommitLineData
33311c3b
WJ
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)soelim.1 6.4 (Berkeley) 4/22/91
33.\"
34.Dd April 22, 1991
35.Dt SOELIM 1
36.Os BSD 3
37.Sh NAME
38.Nm soelim
39.Nd eliminate \&.so's from nroff input
40.Sh SYNOPSIS
41.Nm soelim
42.Op Ar file ...
43.Sh DESCRIPTION
44.Nm Soelim
45reads the specified files or the standard input and performs the textual
46inclusion implied by the
47.Xr nroff 1
48directives of the form:
49.Pp
50.Dl \&.so somefile
51.Pp
52The directives need to appear at the beginning of input lines.
53This is useful since programs such as
54.Xr tbl 1
55do not normally do this; it allows the placement of individual tables
56in separate files to be run as a part of a large document.
57.Pp
58An argument consisting of a single minus
59.Ql Fl
60is taken to be
61a file name corresponding to the standard input.
62.Pp
63Note that inclusion can be suppressed by using
64.Ql \e'
65instead of
66.Ql \e. ,
67i.e.
68.Pp
69.Dl \'so /usr/lib/tmac.s
70.Pp
71A sample usage of
72.Nm soelim
73would be
74.Pp
75.Bd -literal -offset indent -compact
76soelim exum?.n \&| tbl \&| nroff \-ms \&| col \&| lpr
77.Ed
78.Sh SEE ALSO
79.Xr colcrt 1 ,
80.Xr more 1
81.Sh BUGS
82The format of the source commands must involve no strangeness \-
83exactly one blank must precede and no blanks follow the file name.
84.Sh HISTORY
85The
86.Nm
87command appeared in
88.Bx 3.0 .