gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control systemdiff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
<property name="samples.main.dir" value="samples" />
<property name="samples.temp.dir" value="samples-temp" />
- <target name="help">
- <echo>Possible options:
- all - build the tool and the compiler and test on the samples
- build - build the mjc2wsl tool
- mj-build - build the mj compiler
- mj-samples - run the mj compiler on the samples (build if needed)
- </echo>
- </target>
+ <property name="fermat.dir" value="/home/donny/d/donny/fermat3" />
+
+ <description>
+ Builder script for mjc2wsl and related tools, runs test
+ on given samples.
+ </description>
<target name="init">
<mkdir dir="${mjc2wsl.class.dir}"/>
</antcall>
</target>
- <target name="all" depends='mj-samples,mjc2wsl-samples' description="build the tools, run them on the samples to check">
+ <target name="wsl-run" >
+ <exec executable="${fermat.dir}/bin/wsl" >
+ <env key="PATH" path="${env.PATH}:${fermat.dir}/bin"/>
+ <env key="FermaT" path="${fermat.dir}" />
+ <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
+ <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e5.scm" />
+ <arg value="${filename}"/>
+ </exec>
+ </target>
+
+ <target name="wsl-transf" depends="make-transf-ini"
+ description="transform (simplify) the wsl files generated by mjc2wsl">
+ <antcall target="wsl-run">
+ <param name="filename" value="src-wsl/transf-min.wsl" />
+ </antcall>
+ </target>
+
+ <target name="make-transf-ini">
+ <fileset dir="${samples.temp.dir}" casesensitive="no" id="generated-wsl-fileset">
+ <patternset id="non.test.sources">
+ <include name="**/*.wsl"/>
+ <exclude name="**/*_t.wsl"/>
+ </patternset>
+ </fileset>
+ <pathconvert pathsep="${line.separator}"
+ property="generated-wsl-files" refid="generated-wsl-fileset" />
+
+ <echo file="transf.ini">${generated-wsl-files}</echo>
+ </target>
+
+ <target name="all" depends='mj-samples,mjc2wsl-samples'
+ description="build the tools, run them on the samples to check">
</target>