4.3BSD/usr/contrib/icon/man/man1/i-split.1

.so tmac.ilib
.TH I-SPLIT 1 "The University of Arizona \- 5/28/83"
.SH NAME
i-split \- split Icon program into separate files
.SH SYNOPSIS
\f3i-split\fR [\f3\-g\fR file]
.SH DESCRIPTION
\fII-split\fR reads an Icon program from standard input and writes
each procedure to a separate file. The output file names consist of
the procedure name with \f3.icn\fR appended.
If the \f3\-g\fR option is specified, any
global, external, and record declarations
are written to that file. Otherwise they are written in the file for
the procedure that immediately follows them.
.PP
Comments and white space between declarations are attached to the next
following declaration.
.SH LIMITATIONS
\fII-split\fR only recognizes declarations that start at the beginning
of lines.
.PP
Comments and interline white space between declarations may not come
out as intended.
.PP
If the \f3\-g\fR option is not specified, any global, external, or
record declarations that follow the last procedure are discarded.
.SH AUTHOR
Ralph E. Griswold