fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

KEEP FILE NAME EXTENSIONS

Syntax:

KEEP FILE [NAME] EXTENSIONS NEW FILE NAME EXTENSIONS

Function:

Specifies whether the file name extensions of the Fortran output files written by fpt will be changed to the current defaults or whether the input file name extensions will be retained for the output files. Some compilers require a specific file name extension for primary or include files.

The output file name extensions are specified by the commands:

OUTPUT FILE NAME EXTENSION

PRIMARY OUTPUT FILE NAME EXTENSION

INCLUDE OUTPUT FILE NAME EXTENSION

If no specification is made, the default output file name extensions are .fpt for primary files and .fpi for INCLUDE files.

If the input file name extensions are retained for the output files it is recommended that the input files are read from another directory, for example by specifying:

INPUT DIRECTORY: <directory>

or the output files are directed to another directory, by specifying

OUTPUT DIRECTORY: <directory>

If the output files are written to the same directory as the input files, the user may specify whether or not existing files are to be overwritten by the command:

[ DO NOT ] OVERWRITE EXISTING FILES

If DO NOT OVERWRITE EXISTING FILES is specified, the output files are renamed to avoid name clashes with the input files and with other files already present in the output directory. Messages are written to the terminal and listing (fpl) file to indicate the files which have been renamed.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code Yes

Default

NEW FILE NAME EXTENSIONS

(Note that defaults may be changed in the configuration file)

Examples

! TR2.FSP - Specification file for tr2 tr2.f terr.f wind.f %keep file extensions ! Keep .f extension for F77 compiler %output directory 'fpt/' ! and write to a new directory %overwrite existing files ! overwriting anything already there

See Also

INPUT DIRECTORY

PRIMARY INPUT DIRECTORY

INCLUDE INPUT DIRECTORY

OUTPUT FILE NAME EXTENSION

PRIMARY OUTPUT FILE NAME EXTENSION

INCLUDE OUTPUT FILE NAME EXTENSION

OUTPUT DIRECTORY

OVERWRITE EXISTING FILES

Copyright ©1995 to 2022 Software Validation Ltd. All rights reserved.