Eiffel (script)

by Jocelyn-Fiat (modified: 2020 Sep 18)

Eiffel script-like execution


The purpose of this eiffel tool, is to execute an Eiffel project by providing the .ecf file.

Usage: eiffel prog.ecf arg1 arg2 ...

The first time, it compiles prog.ecf in finalized mode, and on success it launchs the generated executable with arguments arg1 arg2 ....

Then the next time, eiffel reuses the executable previously compiled (if any). The (re)compilation is triggered only if the prog.ecf is changed, or if required by the eiffel command using specific options -b or --build. (TODO: find better way to detect changes that would trigger a new compilation).

Build instruction

The eiffel can also be used to compile the prog.ecf and save the generated file at given location. eiffel (--target targetname) build prog.ecf path-to-prog.exe


USAGE: eiffel (-v|--verbose) (-h|--help) (-b|--build) (--check class,project) (--target ecf_target_name) (--resource file_name)* <project.ecf> ... eiffel build (-v|--verbose) (--target ecf_target_name) (--resource file_name)* <project.ecf> <output_executable_path> ... COMMANDS: <project.ecf> ... : build once and launch <project.ecf> execution. build : build project and save executable as <output_executable_path>. OPTIONS: --target <ecf-target-name> : optional target name. --resource <file-name> : optional resource file name to copy in the parent directory of the EIFGENs : such as *.rc files (multiple occurrences allowed). --check <level> : check level for recompilation, either class (default), or project. : class = check timestamp of system class files, : and ecf files for included libraries : (ignoring classes from libraries). : project = only check the timestamp of main project ecf file. -b --build : force a fresh system build. -o --executable-output <path> : build and save executable as <path>. : without any execution.! -v --verbose : verbose output. -h --help : display this help. ... : arguments for the <project.ecf> execution. Note: you can overwrite default value, using EIFFEL_SCRIPT_DIR : root directory for eiffel script app (default under Eiffel user files/.apps) EIFFEL_SCRIPT_CACHE_DIR : directory caching the compiled executables ($EIFFEL_SCRIPT_DIR/cache) EIFFEL_SCRIPT_COMP_DIR : directory caching the EIFGENs compilation ($EIFFEL_SCRIPT_DIR/comp)