gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
2f6f5805b3460020c0dbee507e110d9e2d514260
[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 <fileset dir="${res.dir}"/>
136 </jar>
138 </target>
140 <!-- **************************************** -->
141 <!-- version tasks
142 based on ideas by Jesper Öqvist http://llbit.se/?p=1876 -->
143 <!-- **************************************** -->
145 <!-- this target is only run if the 'version' property is undefined -->
147 <target name="update-version-string" unless="version">
148 <!-- get a new version string using git describe if possible -->
149 <echo message="Updating version string..."/>
150 <exec executable="git" outputproperty="version"
151 failifexecutionfails="false">
152 <arg value="describe"/>
153 </exec>
154 <antcall target="-store-version-string"/>
155 <!-- ensure version is defined even if git was not available -->
156 <property file="${version.file}"/>
157 </target>
159 <target name="-store-version-string" if="version">
160 <!-- store the new version string in the correct property file -->
161 <echo message="version=${version}"/>
162 <dirname file="${version.file}" property="version.file.dir"/>
163 <mkdir dir="${version.file.dir}" />
164 <propertyfile file="${version.file}">
165 <entry key="version" value="${version}"/>
166 </propertyfile>
167 <exec executable="git" failifexecutionfails="false">
168 <arg value="update-index"/>
169 <arg value="--assume-unchanged"/>
170 <arg value="${version.file}"/>
171 </exec>
172 </target>
174 <!-- **************************************** -->
175 <!-- mjc2wsl related tasks -->
176 <!-- **************************************** -->
178 <target name="build" depends="init,update-version-string" description="build the mjc2wsl tool">
179 <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
180 </target>
182 <target name="mjc2wsl">
183 <echo message="${filename}" />
184 <java classpath="${mjc2wsl.class.dir}:${res.dir}" classname="com.quemaster.transformations.mjc2wsl.mjc2wsl">
185 <arg line="${mjc2wsl.options}" />
186 <arg value="${filename}" />
187 </java>
188 </target>
190 <target name="mjc2wsl-samples" depends="build,init-time" description="run the mjc2wsl tool on the samples">
191 <record name="${log.file.mjc2wsl}${time}.txt" emacsmode="true" />
192 <echo>Used options:${mjc2wsl.options}</echo>
193 <foreach param="filename" target="mjc2wsl" parallel="true" maxthreads="${global.max.threads}">
194 <path>
195 <fileset dir='${samples.temp.dir}'>
196 <include name="*.obj"/>
197 </fileset>
198 </path>
199 </foreach>
200 <record name="${log.file.mjc2wsl}${time}.txt" action="stop" />
201 <copy file="${log.file.mjc2wsl}${time}.txt" tofile="${log.file.mjc2wsl}.txt"/>
202 </target>
204 <target name="mjc2wsl-samples1" depends="build">
205 <!-- simplistic version when antlib (foreach) is not available -->
206 <antcall target="mjc2wsl">
207 <param name="filename" value="samples-temp/sample0.obj" />
208 </antcall>
209 </target>
212 <!-- **************************************** -->
213 <!-- MicroJava related tasks -->
214 <!-- **************************************** -->
217 <target name="mj-build" depends="init" description="build the mj compiler">
218 <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
219 </target>
221 <target name="mj-compile" description="compile a MJ into obj file; given ${filename}">
222 <echo message="${filename}" />
223 <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.compiler}">
224 <arg value="${filename}" />
225 </java>
226 </target>
228 <target name="mj-samples" description="run the mj compiler on the samples" depends="init">
229 <foreach param="filename" target="mj-compile" parallel="true" maxthreads="${global.max.threads}">
230 <path>
231 <fileset dir='${samples.temp.dir}'>
232 <include name="*.mj"/>
233 </fileset>
234 </path>
235 </foreach>
236 </target>
238 <target name="mj-decode" description="decode a MJ obj file given in ${filename}">
239 <echo message="${filename}" />
240 <java classpath="${compiler.class.dir}:${compiler.class.jar}"
241 classname="${compiler.classname.decoder}"
242 output="${filename}.decoded" >
243 <arg value="${filename}" />
244 </java>
245 </target>
247 <target name="mj-decode-samples" description="decode all of the obj files in ${samples.temp.dir}">
248 <foreach param="filename" target="mj-decode">
249 <path>
250 <fileset dir='${samples.temp.dir}'>
251 <include name="*.obj"/>
252 </fileset>
253 </path>
254 </foreach>
255 </target>
257 <target name="mj-run" description="run a MJ obj file given in ${filename} with ${inputstring}">
258 <echo message="${filename}" />
259 <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.interpreter}" inputstring="${inputstring}">
260 <arg value="${filename}" />
261 </java>
262 </target>
264 <target name="mj-samples1" depends="mj-build">
265 <!-- simplistic version when antlib (foreach) is not available -->
266 <antcall target="mj-compile">
267 <param name="filename" value="samples-temp/sample.mj" />
268 </antcall>
269 <antcall target="mj-compile">
270 <param name="filename" value="samples-temp/sample1.mj" />
271 </antcall>
272 <antcall target="mj-compile">
273 <param name="filename" value="samples-temp/sample0.mj" />
274 </antcall>
275 </target>
278 <!-- **************************************** -->
279 <!-- wsl related tasks -->
280 <!-- **************************************** -->
282 <target name="wsl-run" >
283 <property name="args" value=""/>
284 <property name="wslrun.workdir" value=""/>
285 <exec executable="${fermat.dir}/bin/wsl" inputstring="${inputstring}"
286 dir="${wslrun.workdir}" >
287 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
288 <env key="FermaT" path="${fermat.dir}" />
289 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
290 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
291 <arg line="${filename} ${args}"/>
292 </exec>
293 </target>
295 <target name="wsl-transf"
296 description="transform (simplify) a single wsl file generated by mjc2wsl">
298 <antcall target="wsl-run">
299 <param name="filename" value="${transf.wsl.file}" />
300 <param name="args" value="${transf.filename}" />
301 </antcall>
302 </target>
304 <target name="wsl-transf-samples" depends="init"
305 description="transform (simplify) the wsl files generated by mjc2wsl" >
306 <record name="${log.file.transformations}${time}.txt" emacsmode="true" />
307 <foreach param="transf.filename" target="wsl-transf" parallel="true" maxthreads="${global.max.threads}">
308 <path>
309 <fileset dir='${samples.temp.dir}'>
310 <patternset refid="non.transformed.sources"/>
311 </fileset>
312 </path>
313 </foreach>
314 <record name="${log.file.transformations}${time}.txt" action="stop" />
315 <copy file="${log.file.transformations}${time}.txt" tofile="${log.file.transformations}.txt"/>
316 </target>
318 <target name="wsl-transf-samples-ini" depends="init-time,make-transf-ini-samples"
319 description="transform (simplify) the wsl files generated by mjc2wsl - uses ini file">
320 <record name="${log.file.transformations}${time}i.txt" emacsmode="true" />
321 <antcall target="wsl-run">
322 <param name="filename" value="${transf.wsl.file}" />
323 </antcall>
324 <record name="${log.file.transformations}${time}i.txt" action="stop" />
325 <copy file="${log.file.transformations}${time}i.txt" tofile="${log.file.transformations}.txt"/>
326 </target>
328 <target name="make-transf-ini-samples">
329 <fileset dir="${samples.temp.dir}" casesensitive="no" id="generated-wsl-fileset">
330 <patternset refid="non.transformed.sources"/>
331 </fileset>
332 <pathconvert pathsep="${line.separator}"
333 property="generated-wsl-files" refid="generated-wsl-fileset" />
335 <echo file="${transf.wsl.ini}">${generated-wsl-files}</echo>
336 </target>
339 <!-- **************************************** -->
340 <!-- Testing tasks -->
341 <!-- **************************************** -->
343 <target name="manual-test-run"
344 description="run .obj .wsl ${transf.wsl.ext}, given are ${file.dir}, ${file.name} (no extension) and an ${inputstring}">
345 <record name="${file.dir}/${file.name}.out1" emacsmode="true" />
346 <antcall target="mj-run">
347 <param name="filename" value="${file.dir}/${file.name}.obj" />
348 <param name="inputstring" value="${inputstring}" />
349 </antcall>
350 <record name="${file.dir}/${file.name}.out1" action="stop" />
351 <record name="${file.dir}/${file.name}.out2" emacsmode="true" />
352 <antcall target="wsl-run">
353 <param name="filename" value="${file.dir}/${file.name}.wsl" />
354 <param name="inputstring" value="${inputstring}" />
355 </antcall>
356 <record name="${file.dir}/${file.name}.out2" action="stop" />
357 <record name="${file.dir}/${file.name}.out3" emacsmode="true" />
358 <antcall target="wsl-run">
359 <param name="filename" value="${file.dir}/${file.name}${transf.wsl.ext}" />
360 <param name="inputstring" value="${inputstring}" />
361 </antcall>
362 <record name="${file.dir}/${file.name}.out3" action="stop" />
363 </target>
365 <target name="manual-test-run-samples-dir"
366 description="run .obj .wsl ${transf.wsl.ext}, in the samples-temp directory; given ${file.name} (no extension) and an ${inputstring}">
367 <antcall target="manual-test-run">
368 <param name="file.dir" value="${samples.temp.dir}"/>
369 </antcall>
370 </target>
372 <target name="init-compare">
373 <mkdir dir="${samples.temp.dir}/outputs"/>
374 </target>
376 <target name="test-m-w">
378 <basename property="file.out" file="${inputfile}" suffix=".txt"/>
380 <java classpath="${compiler.class.dir}:${compiler.class.jar}"
381 classname="${compiler.classname.interpreter}"
382 input="${inputfile}"
383 error="${samples.temp.dir}/outputs/${file.out}.errmj"
384 output="${samples.temp.dir}/outputs/${file.out}.outmj">
385 <arg value="${file.dir}/${file.name}.obj" />
386 </java>
388 <exec executable="${fermat.dir}/bin/wsl"
389 input="${inputfile}"
390 error="${samples.temp.dir}/outputs/${file.out}.errwsl"
391 output="${samples.temp.dir}/outputs/${file.out}.outwsl" >
392 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
393 <env key="FermaT" path="${fermat.dir}" />
394 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
395 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
396 <arg value="${file.dir}/${file.name}.wsl"/>
397 </exec>
399 <exec executable="perl" resultproperty="ook">
400 <arg value="lib/compare-m-w.pl"/>
401 <arg value="${file.dir}/outputs"/>
402 <arg value="${file.out}"/>
403 </exec>
405 </target>
407 <target name="test-w-wt">
409 <basename property="file.out" file="${inputfile}" suffix=".txt"/>
411 <exec executable="${fermat.dir}/bin/wsl"
412 input="${inputfile}"
413 error="${samples.temp.dir}/outputs/${file.out}.errwsl"
414 output="${samples.temp.dir}/outputs/${file.out}.outwsl" >
415 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
416 <env key="FermaT" path="${fermat.dir}" />
417 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
418 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
419 <arg value="${file.dir}/${file.name}.wsl"/>
420 </exec>
422 <exec executable="${fermat.dir}/bin/wsl"
423 input="${inputfile}"
424 error="${samples.temp.dir}/outputs/${file.out}.errwslt"
425 output="${samples.temp.dir}/outputs/${file.out}.outwslt" >
426 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
427 <env key="FermaT" path="${fermat.dir}" />
428 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
429 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
430 <arg value="${file.dir}/${file.name}${transf.wsl.ext}"/>
431 </exec>
433 <exec executable="perl">
434 <arg value="lib/compare-w-wt.pl"/>
435 <arg value="${file.dir}/outputs"/>
436 <arg value="${file.out}"/>
437 </exec>
438 </target>
440 <target name="test-fn">
441 <basename property="file.name" file="${filename}" suffix=".obj"/>
442 <dirname property="file.dir" file="${filename}"/>
443 <foreach param="inputfile" target="test-m-w" inheritall="true">
444 <path>
445 <fileset dir='${tests.dir}'>
446 <include name="${file.name}*.txt"/>
447 </fileset>
448 </path>
449 </foreach>
450 </target>
452 <target name="test-fn-t">
453 <basename property="file.name" file="${filename}" suffix="${transf.wsl.ext}"/>
454 <dirname property="file.dir" file="${filename}"/>
455 <foreach param="inputfile" target="test-w-wt" inheritall="true">
456 <path>
457 <fileset dir='${tests.dir}'>
458 <include name="${file.name}*.txt"/>
459 </fileset>
460 </path>
461 </foreach>
462 </target>
464 <target name="test-all-m" depends="init-compare,init-time"
465 description="Run all the tests from the test directory to compare MJ and WSL" >
466 <record name="${log.file.tests.m}${time}.txt" emacsmode="true" />
467 <foreach param="filename" target="test-fn" inheritall="true">
468 <path>
469 <fileset dir='${samples.temp.dir}'>
470 <include name="*.obj"/>
471 </fileset>
472 </path>
473 </foreach>
474 <record name="${log.file.tests.m}${time}.txt" action="stop" />
475 <move file="${log.file.tests.m}.txt" tofile="${log.file.tests.m}-previous.txt" failonerror="false"/>
476 <copy file="${log.file.tests.m}${time}.txt" tofile="${log.file.tests.m}.txt"/>
477 </target>
479 <target name="test-all-t" depends="init-compare,init-time"
480 description="Run all the tests from the test directory to compare WSL and transformations" >
481 <record name="${log.file.tests.t}${time}.txt" emacsmode="true" />
482 <foreach param="filename" target="test-fn-t">
483 <path>
484 <fileset dir='${samples.temp.dir}'>
485 <include name="*${transf.wsl.ext}"/>
486 </fileset>
487 </path>
488 </foreach>
489 <record name="${log.file.tests.t}${time}.txt" action="stop" />
490 <move file="${log.file.tests.t}.txt" tofile="${log.file.tests.t}-previous.txt" failonerror="false"/>
491 <copy file="${log.file.tests.t}${time}.txt" tofile="${log.file.tests.t}.txt"/>
492 </target>
494 <target name="q-test">
495 <!-- for quick tests -->
496 <antcall target="test-fn">
497 <param name="file.name" value="Rek1"/>
498 <param name="file.dir" value="${samples.temp.dir}"/>
499 </antcall>
500 </target>
503 <!-- **************************************** -->
504 <!-- metrics -->
505 <!-- **************************************** -->
507 <target name="metrics-compare-wsl">
508 <basename property="metrics.temp.name" file="${metrics.run.filename}" suffix="${transf.wsl.ext}"/>
509 <dirname property="metrics.temp.dir" file="${metrics.run.filename}"/>
510 <antcall target="wsl-run">
511 <param name="filename" value="${metrics.wsl.file}" />
512 <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}" />
514 </antcall>
516 </target>
518 <target name="metrics-samples-compare-wsl" depends="init"
519 description="metrics on transformed wsl files (csv file)" >
521 <antcall target="wsl-run">
522 <param name="filename" value="${metrics.wsl.file}" />
523 <param name="args" value="-o ${samples.temp.dir}/0000-header${metrics.extension} -HC" />
525 </antcall>
527 <foreach param="metrics.run.filename" target="metrics-compare-wsl" parallel="true" maxthreads="${global.max.threads}">
528 <path>
529 <fileset dir='${samples.temp.dir}'>
530 <patternset refid="transformed.sources"/>
531 </fileset>
532 </path>
533 </foreach>
535 <concat destfile="${samples.temp.dir}/metrics-wsl-compare.csv">
536 <fileset dir="${samples.temp.dir}" includes="*${metrics.extension}"/>
537 </concat>
538 </target>
541 <!-- **************************************** -->
542 <!-- output serveral versions of files -->
543 <!-- **************************************** -->
545 <target name="output-all-versions"
546 description="generate variations on the translations in the 'local' folder and tar them">
547 <antcall>
548 <target name="mj-samples"/>
549 <target name="mjc2wsl-samples"/>
550 <param name="samples.temp.dir" value="local/out/headTail-proc"/>
551 <param name="mjc2wsl.options" value=""/>
552 </antcall>
553 <antcall>
554 <target name="mj-samples"/>
555 <target name="mjc2wsl-samples"/>
556 <param name="samples.temp.dir" value="local/out/headTail-inline"/>
557 <param name="mjc2wsl.options" value="--genInlinePrint"/>
558 </antcall>
559 <antcall>
560 <target name="mj-samples"/>
561 <target name="mjc2wsl-samples"/>
562 <param name="samples.temp.dir" value="local/out/popPush-inline"/>
563 <param name="mjc2wsl.options" value="--genPopPush --genInlinePrint"/>
564 </antcall>
565 <antcall>
566 <target name="mj-samples"/>
567 <target name="mjc2wsl-samples"/>
568 <param name="samples.temp.dir" value="local/out/popPush-proc"/>
569 <param name="mjc2wsl.options" value="--genPopPush"/>
570 </antcall>
571 <antcall>
572 <target name="mj-samples"/>
573 <target name="mjc2wsl-samples"/>
574 <param name="samples.temp.dir" value="local/out/popPush-glob"/>
575 <param name="mjc2wsl.options" value="--genPopPush --genGlobalVars"/>
576 </antcall>
577 <tar basedir="local/out" compression="gzip"
578 destfile="local/mjc2wsl-samples.tgz"
579 includes="*/*.wsl"/>
580 </target>
583 <!-- **************************************** -->
584 <!-- output a comparison Latex file and compile it -->
585 <!-- **************************************** -->
587 <target name="output-comparison-pdf-single">
588 <basename property="file.name" file="${filename}" suffix=".mj"/>
589 <echo append='true' file="${samples.temp.dir}/tex/comparison.tex">
590 \section{${file.name}}
591 \begin{paracol}{4}
592 \lstinputlisting[style=mj]{../${file.name}.mj}
593 \switchcolumn
594 \lstinputlisting[style=decoded]{../${file.name}.obj.decoded}
595 \switchcolumn
596 \lstinputlisting[style=wsl,lastline=200]{../${file.name}.wsl}
597 \switchcolumn
598 \lstinputlisting[style=wslt,lastline=200]{../${file.name}${transf.wsl.ext}}
599 \end{paracol}
600 </echo>
601 </target>
603 <target name="output-comparison-pdf"
604 description="Makes a parallel display in Latex and produces a pdf (tex dir in temp dir)" >
606 <copy file="lib/tex/comparison-start.tex" overwrite="true"
607 tofile="${samples.temp.dir}/tex/comparison.tex"/>
608 <foreach param="filename" target="output-comparison-pdf-single" inheritall="true">
609 <path>
610 <fileset dir='${samples.temp.dir}'>
611 <include name="*.mj"/>
612 </fileset>
613 </path>
614 </foreach>
615 <concat destfile="${samples.temp.dir}/tex/comparison.tex" append="true">
616 <filelist dir="lib/tex" files="comparison-end.tex"/>
617 </concat>
618 <antcall target="output-comparison-compile"/>
619 </target>
621 <target name="output-comparison-compile">
622 <exec command="pdflatex comparison.tex"
623 dir="${samples.temp.dir}/tex"/>
624 </target>
626 <!-- jedit specific flags; needs to be the first or the last 10 lines
627 :noTabs=true:
628 -->
629 </project>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner