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="transf.wsl.ini" value="transf.ini" />
<property name="transf.wsl.ext" value="_t.wsl" />
+ <property name="metrics.wsl.file" value="src-wsl/metrics.wsl" />
+ <property name="metrics.extension" value=".met" />
+
<property name="tests.dir" value="tests" />
<property name="log.dir" value="logs" />
<target name="wsl-run" >
<property name="args" value=""/>
- <exec executable="${fermat.dir}/bin/wsl" inputstring="${inputstring}">
+ <property name="wslrun.workdir" value=""/>
+ <exec executable="${fermat.dir}/bin/wsl" inputstring="${inputstring}"
+ dir="${wslrun.workdir}" >
<env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
<env key="FermaT" path="${fermat.dir}" />
<env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
<param name="file.dir" value="${samples.temp.dir}"/>
</antcall>
</target>
-
+
+ <!-- metrics -->
+
+ <target name="metrics-compare-wsl">
+ <basename property="metrics.temp.name" file="${metrics.run.filename}" suffix="${transf.wsl.ext}"/>
+ <dirname property="metrics.temp.dir" file="${metrics.run.filename}"/>
+ <antcall target="wsl-run">
+ <param name="filename" value="${metrics.wsl.file}" />
+ <param name="args" value="-o ${metrics.temp.dir}/${metrics.temp.name}${metrics.extension} -c ${metrics.temp.dir}/${metrics.temp.name}.wsl ${metrics.temp.dir}/${metrics.temp.name}${transf.wsl.ext}" />
+
+ </antcall>
+
+ <!--
+ <echo>-o ${metrics.temp.name}.met -c ${metrics.temp.name}.wsl ${metrics.temp.name}${transf.wsl.ext}</echo>
+ -->
+ </target>
+
+ <target name="metrics-samples-compare-wsl" depends="init"
+ description="metrics on transformed wsl files (csv file)" >
+
+ <antcall target="wsl-run">
+ <param name="filename" value="${metrics.wsl.file}" />
+ <param name="args" value="-o ${samples.temp.dir}/0000-header${metrics.extension} -HC" />
+
+ </antcall>
+
+ <foreach param="metrics.run.filename" target="metrics-compare-wsl" parallel="true" maxthreads="${global.max.threads}">
+ <path>
+ <fileset dir='${samples.temp.dir}'>
+ <patternset refid="transformed.sources"/>
+ </fileset>
+ </path>
+ </foreach>
+
+ <concat destfile="${samples.temp.dir}/metrics-wsl-compare.csv">
+ <fileset dir="${samples.temp.dir}" includes="*${metrics.extension}"/>
+ </concat>
+ </target>
+
<!-- output serveral versions of files -->
<target name="output-all-versions"
<!-- output a comparison Latex file and compile it -->
<target name="output-comparison-pdf-single">
- <basename property="file.name" file="${filename}" suffix=".obj"/>
+ <basename property="file.name" file="${filename}" suffix=".mj"/>
<echo append='true' file="${samples.temp.dir}/tex/comparison.tex">
\section{${file.name}}
\begin{paracol}{4}
<foreach param="filename" target="output-comparison-pdf-single" inheritall="true">
<path>
<fileset dir='${samples.temp.dir}'>
- <include name="*.obj"/>
+ <include name="*.mj"/>
</fileset>
</path>
</foreach>