gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
bump version string in the repo
[mjc2wsl.git] / build.xml
1 <project name="mjc2wsl" default="all">
2 <description>
3 Builder script for mjc2wsl and related tools, runs tests
4 on given samples.
5 </description>
7 <!-- use this file for any custom local needs -->
8 <property file="custom.properties"/>
9 <property environment="env"/>
11 <!-- try and detect the fermat.dir based on the operating system
12 should be set as a custom value in "custom.properties"
13 if it's in a non default location.
14 -->
15 <condition property="fermat.dir" value="C:\fermat3">
16 <os family="windows" />
17 </condition>
19 <condition property="fermat.dir" value="${user.home}/fermat3">
20 <not><os family="windows" /></not>
21 </condition>
23 <property name="java.encoding" value="utf-8" />
24 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
26 <!-- **************************************** -->
27 <!-- main variables that can be altered in the
28 properties file or through command line switches.
29 -->
30 <!-- **************************************** -->
32 <!-- when using multiple threads there is a problem with logging!-->
33 <property name="global.max.threads" value="1" />
35 <property name="mjc2wsl.class.dir" value="bin" />
36 <property name="mjc2wsl.src.dir" value="src" />
37 <property name="mjc2wsl.options" value="" />
39 <property name="res.dir" value="res" />
40 <property name="dist.dir" value="dist" />
42 <property name="compiler.class.jar" value="lib/mj.jar" />
43 <property name="compiler.class.dir" value="lib/compiler-bin" />
44 <property name="compiler.src.dir" value="lib/compiler-src" />
45 <property name="compiler.classname.compiler" value="MJ.Compiler" />
46 <property name="compiler.classname.interpreter" value="MJ.Run" />
47 <property name="compiler.classname.decoder" value="MJ.Decode" />
49 <property name="samples.main.dir" value="samples" />
50 <property name="samples.temp.dir" value="temp" />
52 <property name="transf.wsl.file" value="src-wsl/transf-min.wsl" />
53 <property name="transf.wsl.ini" value="transf.ini" />
54 <property name="transf.wsl.ext" value="_t.wsl" />
56 <property name="metrics.wsl.file" value="src-wsl/metrics.wsl" />
57 <property name="metrics.extension" value=".met" />
59 <property name="tests.dir" value="tests" />
61 <property name="log.dir" value="logs" />
62 <property name="log.file.transformations" value="${log.dir}/transformations" />
63 <property name="log.file.mjc2wsl" value="${log.dir}/mjc2wsl" />
64 <property name="log.file.tests.m" value="${log.dir}/tests-mj" />
65 <property name="log.file.tests.t" value="${log.dir}/tests-wsl" />
67 <property name="version.file" value="${res.dir}/com/quemaster/transformations/mjc2wsl/version.properties" />
69 <!-- **************************************** -->
70 <!-- patterns -->
71 <!-- **************************************** -->
73 <patternset id="non.transformed.sources">
74 <include name="**/*.wsl"/>
75 <exclude name="**/*${transf.wsl.ext}"/>
76 </patternset>
78 <patternset id="transformed.sources">
79 <include name="**/*${transf.wsl.ext}"/>
80 </patternset>
82 <!-- **************************************** -->
83 <!-- general tasks -->
84 <!-- **************************************** -->
86 <target name="init" depends="init-time">
87 <mkdir dir="${mjc2wsl.class.dir}"/>
88 <mkdir dir="${compiler.class.dir}"/>
89 <mkdir dir="${samples.temp.dir}"/>
90 <mkdir dir="${log.dir}"/>
91 <mkdir dir="${dist.dir}"/>
92 <copy todir="${samples.temp.dir}">
93 <fileset dir="${samples.main.dir}">
94 <include name="*.mj"/>
95 </fileset>
96 </copy>
97 </target>
99 <target name="init-time">
100 <tstamp>
101 <format property="time" pattern="yy-MM-dd--HH-mm-ss"/>
102 </tstamp>
103 </target>
105 <target name="all" depends='mj-samples,mjc2wsl-samples,wsl-transf-samples'
106 description="build the tools, run them on the samples to check">
108 </target>
110 <target name="clean" description="clean up all the generated content">
111 <delete includeemptydirs="true">
112 <fileset dir="${mjc2wsl.class.dir}"/>
113 <fileset dir="${compiler.class.dir}"/>
114 <fileset dir="${samples.temp.dir}"/>
115 <fileset dir="${log.dir}"/>
116 </delete>
117 </target>
119 <target name="pack.jar" depends="build,update-version-string"
120 description="Packs the binaries in a jar and place it in ${dist.dir}">
122 <mkdir dir="${dist.dir}"/>
123 <jar destfile="${dist.dir}/mjc2wsl.jar"
124 includes="**">
125 <manifest>
126 <attribute name="Built-By" value="${user.name}"/>
127 <attribute name="Implementation-Vendor"
128 value="Doni Pracner"/>
129 <attribute name="Implementation-Title"
130 value="MicroJava bytecode to WSL"/>
131 <attribute name="Implementation-Version" value="${version}"/>
132 <attribute name="Main-Class" value="com.quemaster.transformations.mjc2wsl.mjc2wsl"/>
133 </manifest>
134 <fileset dir="${mjc2wsl.class.dir}"/>
135 </jar>
137 </target>
139 <!-- **************************************** -->
140 <!-- version tasks
141 based on ideas by Jesper Öqvist http://llbit.se/?p=1876 -->
142 <!-- **************************************** -->
144 <!-- this target is only run if the 'version' property is undefined -->
146 <target name="update-version-string" unless="version">
147 <!-- get a new version string using git describe if possible -->
148 <echo message="Updating version string..."/>
149 <exec executable="git" outputproperty="version"
150 failifexecutionfails="false">
151 <arg value="describe"/>
152 </exec>
153 <antcall target="-store-version-string"/>
154 <!-- ensure version is defined even if git was not available -->
155 <property file="${version.file}"/>
156 </target>
158 <target name="-store-version-string" if="version">
159 <!-- store the new version string in the correct property file -->
160 <echo message="version=${version}"/>
161 <dirname file="${version.file}" property="version.file.dir"/>
162 <mkdir dir="${version.file.dir}" />
163 <propertyfile file="${version.file}">
164 <entry key="version" value="${version}"/>
165 </propertyfile>
166 <exec executable="git" failifexecutionfails="false">
167 <arg value="update-index"/>
168 <arg value="--assume-unchanged"/>
169 <arg value="${version.file}"/>
170 </exec>
171 </target>
173 <!-- **************************************** -->
174 <!-- mjc2wsl related tasks -->
175 <!-- **************************************** -->
177 <target name="build" depends="init,update-version-string" description="build the mjc2wsl tool">
178 <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
179 <copy todir="${mjc2wsl.class.dir}">
180 <fileset dir="${res.dir}"/>
181 </copy>
182 </target>
184 <target name="mjc2wsl">
185 <echo message="${filename}" />
186 <java classpath="${mjc2wsl.class.dir}:${res.dir}" classname="com.quemaster.transformations.mjc2wsl.mjc2wsl">
187 <arg line="${mjc2wsl.options}" />
188 <arg value="${filename}" />
189 </java>
190 </target>
192 <target name="mjc2wsl-samples" depends="build,init-time" description="run the mjc2wsl tool on the samples">
193 <record name="${log.file.mjc2wsl}${time}.txt" emacsmode="true" />
194 <echo>Used options:${mjc2wsl.options}</echo>
195 <foreach param="filename" target="mjc2wsl" parallel="true" maxthreads="${global.max.threads}">
196 <path>
197 <fileset dir='${samples.temp.dir}'>
198 <include name="*.obj"/>
199 </fileset>
200 </path>
201 </foreach>
202 <record name="${log.file.mjc2wsl}${time}.txt" action="stop" />
203 <copy file="${log.file.mjc2wsl}${time}.txt" tofile="${log.file.mjc2wsl}.txt"/>
204 </target>
206 <target name="mjc2wsl-samples1" depends="build">
207 <!-- simplistic version when antlib (foreach) is not available -->
208 <antcall target="mjc2wsl">
209 <param name="filename" value="samples-temp/sample0.obj" />
210 </antcall>
211 </target>
214 <!-- **************************************** -->
215 <!-- MicroJava related tasks -->
216 <!-- **************************************** -->
219 <target name="mj-build" depends="init" description="build the mj compiler">
220 <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
221 </target>
223 <target name="mj-compile" description="compile a MJ into obj file; given ${filename}">
224 <echo message="${filename}" />
225 <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.compiler}">
226 <arg value="${filename}" />
227 </java>
228 </target>
230 <target name="mj-samples" description="run the mj compiler on the samples" depends="init">
231 <foreach param="filename" target="mj-compile" parallel="true" maxthreads="${global.max.threads}">
232 <path>
233 <fileset dir='${samples.temp.dir}'>
234 <include name="*.mj"/>
235 </fileset>
236 </path>
237 </foreach>
238 </target>
240 <target name="mj-decode" description="decode a MJ obj file given in ${filename}">
241 <echo message="${filename}" />
242 <java classpath="${compiler.class.dir}:${compiler.class.jar}"
243 classname="${compiler.classname.decoder}"
244 output="${filename}.decoded" >
245 <arg value="${filename}" />
246 </java>
247 </target>
249 <target name="mj-decode-samples" description="decode all of the obj files in ${samples.temp.dir}">
250 <foreach param="filename" target="mj-decode">
251 <path>
252 <fileset dir='${samples.temp.dir}'>
253 <include name="*.obj"/>
254 </fileset>
255 </path>
256 </foreach>
257 </target>
259 <target name="mj-run" description="run a MJ obj file given in ${filename} with ${inputstring}">
260 <echo message="${filename}" />
261 <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.interpreter}" inputstring="${inputstring}">
262 <arg value="${filename}" />
263 </java>
264 </target>
266 <target name="mj-samples1" depends="mj-build">
267 <!-- simplistic version when antlib (foreach) is not available -->
268 <antcall target="mj-compile">
269 <param name="filename" value="samples-temp/sample.mj" />
270 </antcall>
271 <antcall target="mj-compile">
272 <param name="filename" value="samples-temp/sample1.mj" />
273 </antcall>
274 <antcall target="mj-compile">
275 <param name="filename" value="samples-temp/sample0.mj" />
276 </antcall>
277 </target>
280 <!-- **************************************** -->
281 <!-- wsl related tasks -->
282 <!-- **************************************** -->
284 <target name="wsl-run" >
285 <property name="args" value=""/>
286 <property name="wslrun.workdir" value=""/>
287 <exec executable="${fermat.dir}/bin/wsl" inputstring="${inputstring}"
288 dir="${wslrun.workdir}" >
289 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
290 <env key="FermaT" path="${fermat.dir}" />
291 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
292 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
293 <arg line="${filename} ${args}"/>
294 </exec>
295 </target>
297 <target name="wsl-transf"
298 description="transform (simplify) a single wsl file generated by mjc2wsl">
300 <antcall target="wsl-run">
301 <param name="filename" value="${transf.wsl.file}" />
302 <param name="args" value="${transf.filename}" />
303 </antcall>
304 </target>
306 <target name="wsl-transf-samples" depends="init"
307 description="transform (simplify) the wsl files generated by mjc2wsl" >
308 <record name="${log.file.transformations}${time}.txt" emacsmode="true" />
309 <foreach param="transf.filename" target="wsl-transf" parallel="true" maxthreads="${global.max.threads}">
310 <path>
311 <fileset dir='${samples.temp.dir}'>
312 <patternset refid="non.transformed.sources"/>
313 </fileset>
314 </path>
315 </foreach>
316 <record name="${log.file.transformations}${time}.txt" action="stop" />
317 <copy file="${log.file.transformations}${time}.txt" tofile="${log.file.transformations}.txt"/>
318 </target>
320 <target name="wsl-transf-samples-ini" depends="init-time,make-transf-ini-samples"
321 description="transform (simplify) the wsl files generated by mjc2wsl - uses ini file">
322 <record name="${log.file.transformations}${time}i.txt" emacsmode="true" />
323 <antcall target="wsl-run">
324 <param name="filename" value="${transf.wsl.file}" />
325 </antcall>
326 <record name="${log.file.transformations}${time}i.txt" action="stop" />
327 <copy file="${log.file.transformations}${time}i.txt" tofile="${log.file.transformations}.txt"/>
328 </target>
330 <target name="make-transf-ini-samples">
331 <fileset dir="${samples.temp.dir}" casesensitive="no" id="generated-wsl-fileset">
332 <patternset refid="non.transformed.sources"/>
333 </fileset>
334 <pathconvert pathsep="${line.separator}"
335 property="generated-wsl-files" refid="generated-wsl-fileset" />
337 <echo file="${transf.wsl.ini}">${generated-wsl-files}</echo>
338 </target>
341 <!-- **************************************** -->
342 <!-- Testing tasks -->
343 <!-- **************************************** -->
345 <target name="manual-test-run"
346 description="run .obj .wsl ${transf.wsl.ext}, given are ${file.dir}, ${file.name} (no extension) and an ${inputstring}">
347 <record name="${file.dir}/${file.name}.out1" emacsmode="true" />
348 <antcall target="mj-run">
349 <param name="filename" value="${file.dir}/${file.name}.obj" />
350 <param name="inputstring" value="${inputstring}" />
351 </antcall>
352 <record name="${file.dir}/${file.name}.out1" action="stop" />
353 <record name="${file.dir}/${file.name}.out2" emacsmode="true" />
354 <antcall target="wsl-run">
355 <param name="filename" value="${file.dir}/${file.name}.wsl" />
356 <param name="inputstring" value="${inputstring}" />
357 </antcall>
358 <record name="${file.dir}/${file.name}.out2" action="stop" />
359 <record name="${file.dir}/${file.name}.out3" emacsmode="true" />
360 <antcall target="wsl-run">
361 <param name="filename" value="${file.dir}/${file.name}${transf.wsl.ext}" />
362 <param name="inputstring" value="${inputstring}" />
363 </antcall>
364 <record name="${file.dir}/${file.name}.out3" action="stop" />
365 </target>
367 <target name="manual-test-run-samples-dir"
368 description="run .obj .wsl ${transf.wsl.ext}, in the samples-temp directory; given ${file.name} (no extension) and an ${inputstring}">
369 <antcall target="manual-test-run">
370 <param name="file.dir" value="${samples.temp.dir}"/>
371 </antcall>
372 </target>
374 <target name="init-compare">
375 <mkdir dir="${samples.temp.dir}/outputs"/>
376 </target>
378 <target name="test-m-w">
380 <basename property="file.out" file="${inputfile}" suffix=".txt"/>
382 <java classpath="${compiler.class.dir}:${compiler.class.jar}"
383 classname="${compiler.classname.interpreter}"
384 input="${inputfile}"
385 error="${samples.temp.dir}/outputs/${file.out}.errmj"
386 output="${samples.temp.dir}/outputs/${file.out}.outmj">
387 <arg value="${file.dir}/${file.name}.obj" />
388 </java>
390 <exec executable="${fermat.dir}/bin/wsl"
391 input="${inputfile}"
392 error="${samples.temp.dir}/outputs/${file.out}.errwsl"
393 output="${samples.temp.dir}/outputs/${file.out}.outwsl" >
394 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
395 <env key="FermaT" path="${fermat.dir}" />
396 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
397 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
398 <arg value="${file.dir}/${file.name}.wsl"/>
399 </exec>
401 <exec executable="perl" resultproperty="ook">
402 <arg value="lib/compare-m-w.pl"/>
403 <arg value="${file.dir}/outputs"/>
404 <arg value="${file.out}"/>
405 </exec>
407 </target>
409 <target name="test-w-wt">
411 <basename property="file.out" file="${inputfile}" suffix=".txt"/>
413 <exec executable="${fermat.dir}/bin/wsl"
414 input="${inputfile}"
415 error="${samples.temp.dir}/outputs/${file.out}.errwsl"
416 output="${samples.temp.dir}/outputs/${file.out}.outwsl" >
417 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
418 <env key="FermaT" path="${fermat.dir}" />
419 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
420 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
421 <arg value="${file.dir}/${file.name}.wsl"/>
422 </exec>
424 <exec executable="${fermat.dir}/bin/wsl"
425 input="${inputfile}"
426 error="${samples.temp.dir}/outputs/${file.out}.errwslt"
427 output="${samples.temp.dir}/outputs/${file.out}.outwslt" >
428 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
429 <env key="FermaT" path="${fermat.dir}" />
430 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
431 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
432 <arg value="${file.dir}/${file.name}${transf.wsl.ext}"/>
433 </exec>
435 <exec executable="perl">
436 <arg value="lib/compare-w-wt.pl"/>
437 <arg value="${file.dir}/outputs"/>
438 <arg value="${file.out}"/>
439 </exec>
440 </target>
442 <target name="test-fn">
443 <basename property="file.name" file="${filename}" suffix=".obj"/>
444 <dirname property="file.dir" file="${filename}"/>
445 <foreach param="inputfile" target="test-m-w" inheritall="true">
446 <path>
447 <fileset dir='${tests.dir}'>
448 <include name="${file.name}*.txt"/>
449 </fileset>
450 </path>
451 </foreach>
452 </target>
454 <target name="test-fn-t">
455 <basename property="file.name" file="${filename}" suffix="${transf.wsl.ext}"/>
456 <dirname property="file.dir" file="${filename}"/>
457 <foreach param="inputfile" target="test-w-wt" inheritall="true">
458 <path>
459 <fileset dir='${tests.dir}'>
460 <include name="${file.name}*.txt"/>
461 </fileset>
462 </path>
463 </foreach>
464 </target>
466 <target name="test-all-m" depends="init-compare,init-time"
467 description="Run all the tests from the test directory to compare MJ and WSL" >
468 <record name="${log.file.tests.m}${time}.txt" emacsmode="true" />
469 <foreach param="filename" target="test-fn" inheritall="true">
470 <path>
471 <fileset dir='${samples.temp.dir}'>
472 <include name="*.obj"/>
473 </fileset>
474 </path>
475 </foreach>
476 <record name="${log.file.tests.m}${time}.txt" action="stop" />
477 <move file="${log.file.tests.m}.txt" tofile="${log.file.tests.m}-previous.txt" failonerror="false"/>
478 <copy file="${log.file.tests.m}${time}.txt" tofile="${log.file.tests.m}.txt"/>
479 </target>
481 <target name="test-all-t" depends="init-compare,init-time"
482 description="Run all the tests from the test directory to compare WSL and transformations" >
483 <record name="${log.file.tests.t}${time}.txt" emacsmode="true" />
484 <foreach param="filename" target="test-fn-t">
485 <path>
486 <fileset dir='${samples.temp.dir}'>
487 <include name="*${transf.wsl.ext}"/>
488 </fileset>
489 </path>
490 </foreach>
491 <record name="${log.file.tests.t}${time}.txt" action="stop" />
492 <move file="${log.file.tests.t}.txt" tofile="${log.file.tests.t}-previous.txt" failonerror="false"/>
493 <copy file="${log.file.tests.t}${time}.txt" tofile="${log.file.tests.t}.txt"/>
494 </target>
496 <target name="q-test">
497 <!-- for quick tests -->
498 <antcall target="test-fn">
499 <param name="file.name" value="Rek1"/>
500 <param name="file.dir" value="${samples.temp.dir}"/>
501 </antcall>
502 </target>
505 <!-- **************************************** -->
506 <!-- metrics -->
507 <!-- **************************************** -->
509 <target name="metrics-compare-wsl">
510 <basename property="metrics.temp.name" file="${metrics.run.filename}" suffix="${transf.wsl.ext}"/>
511 <dirname property="metrics.temp.dir" file="${metrics.run.filename}"/>
512 <antcall target="wsl-run">
513 <param name="filename" value="${metrics.wsl.file}" />
514 <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}" />
516 </antcall>
518 </target>
520 <target name="metrics-samples-compare-wsl" depends="init"
521 description="metrics on transformed wsl files (csv file)" >
523 <antcall target="wsl-run">
524 <param name="filename" value="${metrics.wsl.file}" />
525 <param name="args" value="-o ${samples.temp.dir}/0000-header${metrics.extension} -HC" />
527 </antcall>
529 <foreach param="metrics.run.filename" target="metrics-compare-wsl" parallel="true" maxthreads="${global.max.threads}">
530 <path>
531 <fileset dir='${samples.temp.dir}'>
532 <patternset refid="transformed.sources"/>
533 </fileset>
534 </path>
535 </foreach>
537 <concat destfile="${samples.temp.dir}/metrics-wsl-compare.csv">
538 <fileset dir="${samples.temp.dir}" includes="*${metrics.extension}"/>
539 </concat>
540 </target>
543 <!-- **************************************** -->
544 <!-- output serveral versions of files -->
545 <!-- **************************************** -->
547 <target name="output-all-versions"
548 description="generate variations on the translations in the 'local' folder and tar them">
549 <antcall>
550 <target name="mj-samples"/>
551 <target name="mjc2wsl-samples"/>
552 <param name="samples.temp.dir" value="local/out/headTail-proc"/>
553 <param name="mjc2wsl.options" value=""/>
554 </antcall>
555 <antcall>
556 <target name="mj-samples"/>
557 <target name="mjc2wsl-samples"/>
558 <param name="samples.temp.dir" value="local/out/headTail-inline"/>
559 <param name="mjc2wsl.options" value="--genInlinePrint"/>
560 </antcall>
561 <antcall>
562 <target name="mj-samples"/>
563 <target name="mjc2wsl-samples"/>
564 <param name="samples.temp.dir" value="local/out/popPush-inline"/>
565 <param name="mjc2wsl.options" value="--genPopPush --genInlinePrint"/>
566 </antcall>
567 <antcall>
568 <target name="mj-samples"/>
569 <target name="mjc2wsl-samples"/>
570 <param name="samples.temp.dir" value="local/out/popPush-proc"/>
571 <param name="mjc2wsl.options" value="--genPopPush"/>
572 </antcall>
573 <antcall>
574 <target name="mj-samples"/>
575 <target name="mjc2wsl-samples"/>
576 <param name="samples.temp.dir" value="local/out/popPush-glob"/>
577 <param name="mjc2wsl.options" value="--genPopPush --genGlobalVars"/>
578 </antcall>
579 <tar basedir="local/out" compression="gzip"
580 destfile="local/mjc2wsl-samples.tgz"
581 includes="*/*.wsl"/>
582 </target>
585 <!-- **************************************** -->
586 <!-- output a comparison Latex file and compile it -->
587 <!-- **************************************** -->
589 <target name="output-comparison-pdf-single">
590 <basename property="file.name" file="${filename}" suffix=".mj"/>
591 <echo append='true' file="${samples.temp.dir}/tex/comparison.tex">
592 \section{${file.name}}
593 \begin{paracol}{4}
594 \lstinputlisting[style=mj]{../${file.name}.mj}
595 \switchcolumn
596 \lstinputlisting[style=decoded]{../${file.name}.obj.decoded}
597 \switchcolumn
598 \lstinputlisting[style=wsl,lastline=200]{../${file.name}.wsl}
599 \switchcolumn
600 \lstinputlisting[style=wslt,lastline=200]{../${file.name}${transf.wsl.ext}}
601 \end{paracol}
602 </echo>
603 </target>
605 <target name="output-comparison-pdf"
606 description="Makes a parallel display in Latex and produces a pdf (tex dir in temp dir)" >
608 <copy file="lib/tex/comparison-start.tex" overwrite="true"
609 tofile="${samples.temp.dir}/tex/comparison.tex"/>
610 <foreach param="filename" target="output-comparison-pdf-single" inheritall="true">
611 <path>
612 <fileset dir='${samples.temp.dir}'>
613 <include name="*.mj"/>
614 </fileset>
615 </path>
616 </foreach>
617 <concat destfile="${samples.temp.dir}/tex/comparison.tex" append="true">
618 <filelist dir="lib/tex" files="comparison-end.tex"/>
619 </concat>
620 <antcall target="output-comparison-compile"/>
621 </target>
623 <target name="output-comparison-compile">
624 <exec command="pdflatex comparison.tex"
625 dir="${samples.temp.dir}/tex"/>
626 </target>
628 <!-- jedit specific flags; needs to be the first or the last 10 lines
629 :noTabs=true:
630 -->
631 </project>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner