FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


COMMAND FILE AFTER WRITING FORTRAN

Syntax:

COMMAND FILE AFTER WRITING FORTRAN [:] <file>

COMMAND FILE AFTER WRITE FORTRAN [:] <file>

BATCH FILE AFTER WRITING FORTRAN [:] <file>

BATCH FILE AFTER WRITE FORTRAN [:] <file>

NO COMMAND FILE AFTER WRITING FORTRAN

NO COMMAND FILE AFTER WRITE FORTRAN

NO BATCH FILE AFTER WRITING FORTRAN

NO BATCH FILE AFTER WRITE FORTRAN

Function:

This command specifies a command or Windows batch file which will be executed in the primary output directory after fpt has written the Fortran output files. The command file may be used, for example, to move specific output files to alternative directories.

The command or batch file will be sought:

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:

No command file ies executed by default (Note that defaults may be changed in the configuration file).

Example:

The following command file moves all of the files required to build an interactive control environment out of the primary output directory and into a parallel directory:

rem # *************************************************************************
rem # move_adx.bat  11-Feb-09  Fred Arnott, Harry Huyzers & John Collins
rem #               29-Apr-10  Fred Arnott, Harry Huyzers & John Collins
rem # Move files for building ADX out of the SP build directory
rem # *************************************************************************
rem #
del *.c
rem #
move acapar.fpi            ..\build_adx
move acargs.f              ..\build_adx
move acarwp.fpi            ..\build_adx
move acatab.fpi            ..\build_adx
move accanc.f              ..\build_adx
move accessdb.fpi          ..\build_adx
move acdetl.f              ..\build_adx
move acdfxt.f              ..\build_adx
move acecho.f              ..\build_adx
move acerro.f              ..\build_adx
move acexec.f              ..\build_adx
move acflag.f              ..\build_adx
move achelp.f              ..\build_adx
move achost.fpi            ..\build_adx
move acinit.f              ..\build_adx
move acinop.f              ..\build_adx
move aclcom.fpi            ..\build_adx
move acldat.fpi            ..\build_adx
move aclexr.f              ..\build_adx
move aclgcl.f              ..\build_adx
move aclgop.f              ..\build_adx
move aclogs.f              ..\build_adx
move acnewl.f              ..\build_adx
move acpars.f              ..\build_adx
move acrept.f              ..\build_adx
move acupar.fpi            ..\build_adx
move acwrit.f              ..\build_adx
move adacl.f               ..\build_adx
move adb.f                 ..\build_adx
move adbparam.fpi          ..\build_adx
move adexam.f              ..\build_adx
move adinit.f              ..\build_adx
move adreps.f              ..\build_adx
move adsearch.f            ..\build_adx
move adsim.f               ..\build_adx
move adwrint.f             ..\build_adx
move adwval.f              ..\build_adx
move adx.f                 ..\build_adx
copy adx_transfer_map.fpi  ..\build_adx
move appbda.f              ..\build_adx
move appdef.f              ..\build_adx
move paridx.f              ..\build_adx
move radar*_adb.f           ..\build_adx
move wread.f               ..\build_adx
move wwrite.f              ..\build_adx
move x_access_common.f     ..\build_adx
move show_shm_direct_buffer.f ..\build_adx
copy shm_direct.f          ..\build_adx
copy fpt_access_i1_unsigned_le.f ..\build_adx
copy sel_registers_inc.fpi ..\build_adx
copy radar*_ads.f     ..\build_adx
copy radar*_adc.fpi   ..\build_adx
copy ..\c_source\adx_c.c   ..\build_adx
copy ..\c_source\adx_services.c  ..\build_adx
copy ..\batch_files\adxlnk.sh ..\build_adx
copy ..\batch_files\fort_all.sh ..\build_adx
rem #
copy ..\batch_files\g77lnk.sh       .
copy ..\batch_files\fort_all.sh     .
copy ..\batch_files\fort_all.sh     ..\build_adx
copy ..\batch_files\adxlnk.sh       ..\build_adx
rem #
del c_dummy.f
rem #
rem # End of  move_adx.bat

The fsp file for the project contains the lines:

% COMMAND FILE AFTER WRITING FORTRAN: -
  "move_adx.bat"


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