Commit ec26e07a authored by Antoine's avatar Antoine

input and output files now automaticaly created and updated

parent f00cf78f
# Converter lexique_to_opale # Converter lexique_to_opale
In order to use this converter, follow those steps : In order to use this converter, follow those steps :
0. Create an input and an output directory
1. Copy your Lexique file(s) (.scar or .zip) into the input directory. 1. Copy your Lexique file(s) (.scar or .zip) into the input directory.
2. Execute the run that correspond to your OS. 2. Execute the run that correspond to your OS.
3. You will find the result into the output directory. The names of the output are linked to the hour it was processed. 3. You will find the result into the output directory. The names of the output are linked to the hour it was processed.
...@@ -15,13 +15,22 @@ ...@@ -15,13 +15,22 @@
</classpath> </classpath>
</taskdef> </taskdef>
<target name="rmOutputDir">
<if>
<available file="${OutputPath}" type="dir"/>
<then>
<delete dir="${OutputPath}"/>
</then>
</if>
</target>
<target name="init"> <target name="init" depends="rmOutputDir">
<mkdir dir="${outdir}"/> <mkdir dir="${outdir}"/>
<chmod perm="777" dir="${outdir}"></chmod> <chmod perm="777" dir="${outdir}"></chmod>
<mkdir dir="${srcdir}"/> <mkdir dir="${srcdir}"/>
<chmod perm="777" dir="${srcdir}"></chmod> <chmod perm="777" dir="${srcdir}"></chmod>
<mkdir dir="${OutputPath}"/>
<chmod perm="777" dir="${OutputPath}"></chmod>
</target> </target>
<target name="unzipSource" depends="init"> <target name="unzipSource" depends="init">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment