From 8defe4bb0c927d2adff541715838d2c4afb79f09 Mon Sep 17 00:00:00 2001 From: contributors Date: Wed, 14 Jan 2009 00:39:59 +0000 Subject: [PATCH] Author:peter7723 Date:2009-01-14T00:39:59.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@161 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../compiler/command-line/batch-compilation.wiki | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/current/eiffelstudio/eiffelstudio-reference/compiler/command-line/batch-compilation.wiki b/documentation/current/eiffelstudio/eiffelstudio-reference/compiler/command-line/batch-compilation.wiki index 318d2ae5..483bebc0 100644 --- a/documentation/current/eiffelstudio/eiffelstudio-reference/compiler/command-line/batch-compilation.wiki +++ b/documentation/current/eiffelstudio/eiffelstudio-reference/compiler/command-line/batch-compilation.wiki @@ -1,11 +1,11 @@ [[Property:title|Batch compilation]] [[Property:weight|2]] [[Property:uuid|18958db6-dafc-57b7-cdef-aca01bc13661]] -In order to launch a compilation without user intervention you need to specify the `-batch' switch in the '''ec''' command line, otherwise the Eiffel compilation will be blocked. We will present below a typical example of batch processing on both Unix and Windows platforms where we want to compile a project in both frozen and finalized mode, then to launch the C compilations. At the same time we want to save the output of '''ec''' and the C compilations. +In order to launch a compilation without user intervention you need to specify the `-batch' switch in the '''ec''' command line, otherwise the Eiffel compilation will be blocked. We will present below a typical example of batch processing on both Unix and Windows platforms where we want to compile a project in both frozen and finalized mode, then to launch the C compilations. At the same time we want to save the output of '''ec''' and the C compilations. ===Unix=== In a file called `launch_ec' you can have the following: - + #!/bin/sh output_file="/output_path/OUTPUT" @@ -21,13 +21,13 @@ cd EIFGENs/target_name/W_code finish_freezing > $output_file -It will go the directory where your project is located and compile your Eiffel code using the `config.ecf' file located in your project directory and compile automatically the C code. All outputs will be stored in the file `/output_path/OUTPUT'. +It will go the directory where your project is located and compile your Eiffel code using the `config.ecf' file located in your project directory and compile automatically the C code. All outputs will be stored in the file `/output_path/OUTPUT'. -'''Note:''' All output from '''ec''' are going to the error output, so do not forget to redirect the error output when you want to see the result. +{{note|All output from '''ec''' are going to the error output, so do not forget to redirect the error output when you want to see the result. }} ===Windows=== In a file called `launched_ec.bat' you can have the following: - + rem Launch Eiffel compilation ec -batch -config config.ecf -finalize -c_compile > c:\output_path\OUTPUT @@ -37,7 +37,7 @@ cd EIFGENs\target_name\W_code finish_freezing > c:\output_path\OUTPUT -It will go the directory where your project is located and compile your Eiffel code using the `config.ecf' file located in your project directory and compile automatically the C code. All outputs will be stored in the file `c:\output_path/OUTPUT'. +It will go the directory where your project is located and compile your Eiffel code using the `config.ecf' file located in your project directory and compile automatically the C code. All outputs will be stored in the file `c:\output_path/OUTPUT'. {{seealso|
[[EiffelStudio: Command line options|Command line compiler options]] }}