Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

af77(1)

ratfor(1)

elf(1)

f77(1)



  fsplit(1)                           CLIX                           fsplit(1)



  NAME

    fsplit - Splits FORTRAN, Ratfor, or Efl procedures into separate files

  SYNOPSIS

    fsplit [-efrs]  [file ...]

  FLAGS

    -e     Specifies that the files contain Elf procedures.

    -f     Specifies that the files contain FORTRAN procedures.  FORTRAN is
           the default language.

    -r     Specifies that the files contain Ratfor procedures.

    -s     Causes FORTRAN procedures to be stripped to 72 or fewer characters
           per line, with trailing blanks removed.  This option can only be
           used on FORTRAN procedures.

  DESCRIPTION

    The fsplit program splits files containing FORTRAN, Ratfor, or Efl
    procedures into separate files, one per procedure.  A procedure X is put
    into a file X.f, X.r or X.e, depending on the language specified.

    If a procedure name contains a $ character, it is converted to an - in the
    file name, and a warning is printed.

    The top-level procedure, if not named, will be put into a file called
    MAIN.s, where s is the appropriate suffix.

    If a blockdata section has no explicit name, the data block is put in a
    file with a name of the form BLOCKDATAc.s, where c is a counter of the
    number of such data blocks, and s is the appropriate suffix.

  EXAMPLES

    1.  The following splits the FORTRAN file program.ftn into procedures:

        fsplit program.ftn


    2.  The following splits the files prog1.elf, prog2.elf, and prog3.elf
        into procedures:

        fsplit -e prog1.ef prog2.elf prog3.elf


    3.  The following takes a Ratfor file from the terminal and split it into



  2/94 - Intergraph Corporation                                              1






  fsplit(1)                           CLIX                           fsplit(1)



        files:

        fsplit -r


  NOTES

    Multiple language specification options (-r, -f, -e) can be given on the
    command line; the last one will be used.

  CAUTIONS

    If a procedure name is longer than the maximum file name length, the
    output file name will be truncated.  This may cause a file to be
    overwritten if the procedure names are not unique enough.

  DIAGNOSTICS

    Upon successful completion, the command returns a 0.  If a bad option is
    given, an input file could not be read, or an output file could not be
    written, the command returns a 1.

  RELATED INFORMATION

    Commands:  af77(1), ratfor(1), elf(1), f77(1)





























  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026