BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / fsplit.0
FSPLIT(1) UNIX Programmer's Manual FSPLIT(1)
N\bNA\bAM\bME\bE
fsplit - split a multi-routine Fortran file into individual
files
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
f\bfs\bsp\bpl\bli\bit\bt [ -\b-e\be efile] ... [ file ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
F\bFs\bsp\bpl\bli\bit\bt takes as input either a file or standard input con-
taining Fortran source code. It attempts to split the input
into separate routine files of the form _\bn_\ba_\bm_\be._\bf, where _\bn_\ba_\bm_\be
is the name of the program unit (e.g. function, subroutine,
block data or program). The name for unnamed block data
subprograms has the form _\bb_\bl_\bk_\bd_\bt_\ba_\bN_\bN_\bN._\bf where NNN is three
digits and a file of this name does not already exist. For
unnamed main programs the name has the form _\bm_\ba_\bi_\bn_\bN_\bN_\bN._\bf. If
there is an error in classifying a program unit, or if
_\bn_\ba_\bm_\be._\bf already exists, the program unit will be put in a
file of the form _\bz_\bz_\bz_\bN_\bN_\bN._\bf where _\bz_\bz_\bz_\bN_\bN_\bN._\bf does not already
exist.
Normally each subprogram unit is split into a separate file.
When the -_\be option is used, only the specified subprogram
units are split into separate files. E.g.:
fsplit -e readit -e doit prog.f
will split readit and doit into separate files.
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
If names specified via the -_\be option are not found, a diag-
nostic is written to _\bs_\bt_\ba_\bn_\bd_\ba_\br_\bd _\be_\br_\br_\bo_\br.
A\bAU\bUT\bTH\bHO\bOR\bR
Asa Romberger and Jerry Berkman
B\bBU\bUG\bGS\bS
_\bF_\bs_\bp_\bl_\bi_\bt assumes the subprogram name is on the first noncom-
ment line of the subprogram unit. Nonstandard source for-
mats may confuse _\bf_\bs_\bp_\bl_\bi_\bt.
It is hard to use -_\be for unnamed main programs and block
data subprograms since you must predict the created file
name.
Printed 7/9/88 April 29, 1985 1