1FSPLIT(1)                   General Commands Manual                  FSPLIT(1)
2
3
4

NAME

6       fsplit - split a multi-routine Fortran file into individual files
7

SYNOPSIS

9       fsplit [ -e efile] ... [ file ]
10

DESCRIPTION

12       Fsplit  takes  as input either a file or standard input containing For‐
13       tran source code.  It attempts to split the input into separate routine
14       files  of  the  form name.f, where name is the name of the program unit
15       (e.g. function, subroutine, block  data  or  program).   The  name  for
16       unnamed  block  data  subprograms has the form blkdtaNNN.f where NNN is
17       three digits and a file of this  name  does  not  already  exist.   For
18       unnamed  main programs the name has the form mainNNN.f.  If there is an
19       error in classifying a program unit, or if name.f already  exists,  the
20       program  unit will be put in a file of the form zzzNNN.f where zzzNNN.f
21       does not already exist.
22
23       Normally each subprogram unit is split into a separate file.  When  the
24       -e  option  is used, only the specified subprogram units are split into
25       separate files.  E.g.:
26            fsplit -e readit -e doit prog.f
27       will split readit and doit into separate files.
28

DIAGNOSTICS

30       If names specified via the -e option are not  found,  a  diagnostic  is
31       written to standard error.
32

AUTHOR

34       Asa Romberger and Jerry Berkman
35

BUGS

37       Fsplit  assumes  the subprogram name is on the first noncomment line of
38       the subprogram unit.  Nonstandard source formats may confuse fsplit.
39
40       It is hard to use -e for unnamed main programs and block  data  subpro‐
41       grams since you must predict the created file name.
42
43
44
454.2 Berkeley Distribution       April 29, 1985                       FSPLIT(1)
Impressum