Difference between revisions of "Clean"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
m (1 revision: initial import from SamrtEiffel Wiki - The Grand SmartEiffel Book)
 
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
[[Category:Tool]]
  +
 
= Usage =
 
= Usage =
 
se clean [options] <Root-Name> ...
 
se clean [options] <Root-Name> ...
Command clean removes all intermediate files produced by previous compile, compile_to_c or compile_to_jvm as well.
+
Command clean removes all intermediate files produced by previous compile, or compile_to_c runs.
Names (<Root-Name> ...) can have the Eiffel suffix, no suffix at all, or the suffix used for SmartEiffel command files on your system (.make on UNIX or .BAT on DOS for example).
+
Names (<Root-Name> ...) can have the Eiffel suffix, no suffix at all, or the suffix used for Liberty Eiffel command files on your system (.make on UNIX or .BAT on Windows, for example).
   
 
= Options =
 
= Options =
Line 19: Line 21:
 
-version:
 
-version:
   
Show the number of the version of SmartEiffel you're using.
+
Show the number of the version of Liberty Eiffel you're using.
   
 
= Examples =
 
= Examples =
Line 28: Line 30:
 
or you can also type: clean HELLO_WORLD
 
or you can also type: clean HELLO_WORLD
 
on Unix, you can type: clean hello_world.make
 
on Unix, you can type: clean hello_world.make
on DOS, you can do: clean hello_world.BAT
+
on Windows, you can do: clean hello_world.BAT
   
 
== Example 2 ==
 
== Example 2 ==
Under Unix or DOS, remove all intermediates files in the current directory : clean *.e
+
Under Unix or Windows, remove all intermediates files in the current directory : clean *.e
   
 
If the root class file is not in the current directory, you can type (for Unix) : clean *.make
 
If the root class file is not in the current directory, you can type (for Unix) : clean *.make

Latest revision as of 16:39, 30 July 2024


Usage

se clean [options] <Root-Name> ... 

Command clean removes all intermediate files produced by previous compile, or compile_to_c runs. Names (<Root-Name> ...) can have the Eiffel suffix, no suffix at all, or the suffix used for Liberty Eiffel command files on your system (.make on UNIX or .BAT on Windows, for example).

Options

 -help:

Display a brief summary of the command-line syntax and a complete list of finder options.

-no_remove:

Print the name of files that would be removed, but do not remove them.e.

-verbose:

Print system information during the compilation (full path of loaded files, type inference score, removed files, etc.).

-version:

Show the number of the version of Liberty Eiffel you're using.

Examples

Example 1

To remove intermediate files produced for the HELLO_WORLD program. Type: clean hello_world You can also type: clean hello_world.e or you can also type: clean HELLO_WORLD on Unix, you can type: clean hello_world.make on Windows, you can do: clean hello_world.BAT

Example 2

Under Unix or Windows, remove all intermediates files in the current directory : clean *.e

If the root class file is not in the current directory, you can type (for Unix) : clean *.make

Option -verbose can be used to see which files are removed.