fsplit(1)

fsplit - split FORTRAN or RATFOR files

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     fsplit - split FORTRAN or RATFOR files

SYNOPSIS
     fsplit options files

DESCRIPTION
     fsplit splits the named file(s) into separate files, with one procedure
     per file.  A procedure includes blockdata, function, main, program, and
     subroutine program segments.  Procedure X is put in file X.f, X.r, or X.e
     depending on the language option chosen, with the following exceptions:
     main is put in the file MAIN.[efr] and unnamed blockdata segments in the
     files blockdataN.[efr] where N is a unique integer value for each file.

     The following options pertain:

     -f   (default) Input files are FORTRAN.

     -r   Input files are RATFOR.

     -e   Input files are EFL.

     -s   Strip FORTRAN input lines to 72 or fewer characters with trailing
          blanks removed.

     -d   Create a subdirectory ( <inputfile>.d ) for each input file and
          create the output files within that subdirectory.


NOTES
     The characters dot (.), underbar (_), and dollar ($) are allowed as name
     characters in MIPS FORTRAN. If used in subroutine or function names they
     are also used in the file names of the created files.

     Comment lines after an end and before the next non-comment line are
     discarded.  Comment lines before the first non-comment line are
     discarded.

     EFL and RATFOR are handled identically except for the output file name
     suffix.

     fsplit does not detect name conflicts between an input file name and an
     output file name, nor does it detect multiple output files with the same
     name.  For example, if two input files each contain a subroutine named
     "NARF", fsplit will generate two output files called "NARF.f" and the
     second one will overwrite the first.  Use the -d option to avoid this
     problem.
SEE ALSO
     csplit(1), split(1).