add imagen
[unix-history] / usr / src / usr.bin / fsplit / fsplit.1
CommitLineData
49b2b382
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
15ae4bc7 5.\" @(#)fsplit.1 6.1 (Berkeley) %G%
49b2b382 6.\"
15ae4bc7 7.TH FSPLIT 1 ""
49b2b382
KM
8.UC 5
9.SH NAME
10fsplit \- split a multi-routine Fortran file into individual files
11.SH SYNOPSIS
12.B fsplit
13[
14.B -e
15efile] ... [ file ]
16.SH DESCRIPTION
17.B Fsplit
18takes as input either a file or standard input containing Fortran source code.
19It attempts to split the input into separate routine files of the
20form
21.I name.f,
22where
23.I name
24is the name of the program unit (e.g. function, subroutine, block data or
25program). The name for unnamed block data subprograms has the form
26.I blkdtaNNN.f
27where NNN is three digits and a file of this name does not already exist.
28For unnamed main programs the name has the form
29.I mainNNN.f.
30If there is an error in classifying a program unit, or if
31.I name.f
32already exists,
33the program unit will be put in a file of the form
34.I zzzNNN.f
35where
36.I zzzNNN.f
37does not already exist.
38.PP
39Normally each subprogram unit is split into a separate file. When the
40.I -e
41option is used, only the specified subprogram units are split into separate
42files. E.g.:
43.nf
44 fsplit -e readit -e doit prog.f
45.fi
46will split readit and doit into separate files.
47.SH DIAGNOSTICS
48If names specified via the
49.I -e
50option are not found, a diagnostic is written to
51.I standard
52.I error.
53.SH AUTHOR
54Asa Romberger and Jerry Berkman
55.SH BUGS
56.I Fsplit
57assumes the subprogram name is on the first noncomment line of the subprogram
58unit. Nonstandard source formats may confuse
59.I fsplit.
60.PP
61It is hard to use
62.I -e
63for unnamed main programs and block data subprograms since you must
64predict the created file name.