gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
ant add jar task, extract version.file property
[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}/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 <propertyfile file="${version.file}">
163 <entry key="version" value="${version}"/>
164 </propertyfile>
165 <exec executable="git" failifexecutionfails="false">
166 <arg value="update-index"/>
167 <arg value="--assume-unchanged"/>
168 <arg value="${version.file}"/>
169 </exec>
170 </target>
172 <!-- **************************************** -->
173 <!-- mjc2wsl related tasks -->
174 <!-- **************************************** -->
176 <target name="build" depends="init,update-version-string" description="build the mjc2wsl tool">
177 <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
178 </target>
180 <target name="mjc2wsl">
181 <echo message="${filename}" />
182 <java classpath="${mjc2wsl.class.dir}:${res.dir}" classname="com.quemaster.transformations.mjc2wsl.mjc2wsl">
183 <arg line="${mjc2wsl.options}" />
184 <arg value="${filename}" />
185 </java>
186 </target>
188 <target name="mjc2wsl-samples" depends="build,init-time" description="run the mjc2wsl tool on the samples">
189 <record name="${log.file.mjc2wsl}${time}.txt" emacsmode="true" />
190 <echo>Used options:${mjc2wsl.options}</echo>
191 <foreach param="filename" target="mjc2wsl" parallel="true" maxthreads="${global.max.threads}">
192 <path>
193 <fileset dir='${samples.temp.dir}'>
194 <include name="*.obj"/>
195 </fileset>
196 </path>
197 </foreach>
198 <record name="${log.file.mjc2wsl}${time}.txt" action="stop" />
199 <copy file="${log.file.mjc2wsl}${time}.txt" tofile="${log.file.mjc2wsl}.txt"/>
200 </target>
202 <target name="mjc2wsl-samples1" depends="build">
203 <!-- simplistic version when antlib (foreach) is not available -->
204 <antcall target="mjc2wsl">
205 <param name="filename" value="samples-temp/sample0.obj" />
206 </antcall>
207 </target>
210 <!-- **************************************** -->
211 <!-- MicroJava related tasks -->
212 <!-- **************************************** -->
215 <target name="mj-build" depends="init" description="build the mj compiler">
216 <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
217 </target>
219 <target name="mj-compile" description="compile a MJ into obj file; given ${filename}">
220 <echo message="${filename}" />
221 <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.compiler}">
222 <arg value="${filename}" />
223 </java>
224 </target>
226 <target name="mj-samples" description="run the mj compiler on the samples" depends="init">
227 <foreach param="filename" target="mj-compile" parallel="true" maxthreads="${global.max.threads}">
228 <path>
229 <fileset dir='${samples.temp.dir}'>
230 <include name="*.mj"/>
231 </fileset>
232 </path>
233 </foreach>
234 </target>
236 <target name="mj-decode" description="decode a MJ obj file given in ${filename}">
237 <echo message="${filename}" />
238 <java classpath="${compiler.class.dir}:${compiler.class.jar}"
239 classname="${compiler.classname.decoder}"
240 output="${filename}.decoded" >
241 <arg value="${filename}" />
242 </java>
243 </target>
245 <target name="mj-decode-samples" description="decode all of the obj files in ${samples.temp.dir}">
246 <foreach param="filename" target="mj-decode">
247 <path>
248 <fileset dir='${samples.temp.dir}'>
249 <include name="*.obj"/>
250 </fileset>
251 </path>
252 </foreach>
253 </target>
255 <target name="mj-run" description="run a MJ obj file given in ${filename} with ${inputstring}">
256 <echo message="${filename}" />
257 <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.interpreter}" inputstring="${inputstring}">
258 <arg value="${filename}" />
259 </java>
260 </target>
262 <target name="mj-samples1" depends="mj-build">
263 <!-- simplistic version when antlib (foreach) is not available -->
264 <antcall target="mj-compile">
265 <param name="filename" value="samples-temp/sample.mj" />
266 </antcall>
267 <antcall target="mj-compile">
268 <param name="filename" value="samples-temp/sample1.mj" />
269 </antcall>
270 <antcall target="mj-compile">
271 <param name="filename" value="samples-temp/sample0.mj" />
272 </antcall>
273 </target>
276 <!-- **************************************** -->
277 <!-- wsl related tasks -->
278 <!-- **************************************** -->
280 <target name="wsl-run" >
281 <property name="args" value=""/>
282 <property name="wslrun.workdir" value=""/>
283 <exec executable="${fermat.dir}/bin/wsl" inputstring="${inputstring}"
284 dir="${wslrun.workdir}" >
285 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
286 <env key="FermaT" path="${fermat.dir}" />
287 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
288 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
289 <arg line="${filename} ${args}"/>
290 </exec>
291 </target>
293 <target name="wsl-transf"
294 description="transform (simplify) a single wsl file generated by mjc2wsl">
296 <antcall target="wsl-run">
297 <param name="filename" value="${transf.wsl.file}" />
298 <param name="args" value="${transf.filename}" />
299 </antcall>
300 </target>
302 <target name="wsl-transf-samples" depends="init"
303 description="transform (simplify) the wsl files generated by mjc2wsl" >
304 <record name="${log.file.transformations}${time}.txt" emacsmode="true" />
305 <foreach param="transf.filename" target="wsl-transf" parallel="true" maxthreads="${global.max.threads}">
306 <path>
307 <fileset dir='${samples.temp.dir}'>
308 <patternset refid="non.transformed.sources"/>
309 </fileset>
310 </path>
311 </foreach>
312 <record name="${log.file.transformations}${time}.txt" action="stop" />
313 <copy file="${log.file.transformations}${time}.txt" tofile="${log.file.transformations}.txt"/>
314 </target>
316 <target name="wsl-transf-samples-ini" depends="init-time,make-transf-ini-samples"
317 description="transform (simplify) the wsl files generated by mjc2wsl - uses ini file">
318 <record name="${log.file.transformations}${time}i.txt" emacsmode="true" />
319 <antcall target="wsl-run">
320 <param name="filename" value="${transf.wsl.file}" />
321 </antcall>
322 <record name="${log.file.transformations}${time}i.txt" action="stop" />
323 <copy file="${log.file.transformations}${time}i.txt" tofile="${log.file.transformations}.txt"/>
324 </target>
326 <target name="make-transf-ini-samples">
327 <fileset dir="${samples.temp.dir}" casesensitive="no" id="generated-wsl-fileset">
328 <patternset refid="non.transformed.sources"/>
329 </fileset>
330 <pathconvert pathsep="${line.separator}"
331 property="generated-wsl-files" refid="generated-wsl-fileset" />
333 <echo file="${transf.wsl.ini}">${generated-wsl-files}</echo>
334 </target>
337 <!-- **************************************** -->
338 <!-- Testing tasks -->
339 <!-- **************************************** -->
341 <target name="manual-test-run"
342 description="run .obj .wsl ${transf.wsl.ext}, given are ${file.dir}, ${file.name} (no extension) and an ${inputstring}">
343 <record name="${file.dir}/${file.name}.out1" emacsmode="true" />
344 <antcall target="mj-run">
345 <param name="filename" value="${file.dir}/${file.name}.obj" />
346 <param name="inputstring" value="${inputstring}" />
347 </antcall>
348 <record name="${file.dir}/${file.name}.out1" action="stop" />
349 <record name="${file.dir}/${file.name}.out2" emacsmode="true" />
350 <antcall target="wsl-run">
351 <param name="filename" value="${file.dir}/${file.name}.wsl" />
352 <param name="inputstring" value="${inputstring}" />
353 </antcall>
354 <record name="${file.dir}/${file.name}.out2" action="stop" />
355 <record name="${file.dir}/${file.name}.out3" emacsmode="true" />
356 <antcall target="wsl-run">
357 <param name="filename" value="${file.dir}/${file.name}${transf.wsl.ext}" />
358 <param name="inputstring" value="${inputstring}" />
359 </antcall>
360 <record name="${file.dir}/${file.name}.out3" action="stop" />
361 </target>
363 <target name="manual-test-run-samples-dir"
364 description="run .obj .wsl ${transf.wsl.ext}, in the samples-temp directory; given ${file.name} (no extension) and an ${inputstring}">
365 <antcall target="manual-test-run">
366 <param name="file.dir" value="${samples.temp.dir}"/>
367 </antcall>
368 </target>
370 <target name="init-compare">
371 <mkdir dir="${samples.temp.dir}/outputs"/>
372 </target>
374 <target name="test-m-w">
376 <basename property="file.out" file="${inputfile}" suffix=".txt"/>
378 <java classpath="${compiler.class.dir}:${compiler.class.jar}"
379 classname="${compiler.classname.interpreter}"
380 input="${inputfile}"
381 error="${samples.temp.dir}/outputs/${file.out}.errmj"
382 output="${samples.temp.dir}/outputs/${file.out}.outmj">
383 <arg value="${file.dir}/${file.name}.obj" />
384 </java>
386 <exec executable="${fermat.dir}/bin/wsl"
387 input="${inputfile}"
388 error="${samples.temp.dir}/outputs/${file.out}.errwsl"
389 output="${samples.temp.dir}/outputs/${file.out}.outwsl" >
390 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
391 <env key="FermaT" path="${fermat.dir}" />
392 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
393 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
394 <arg value="${file.dir}/${file.name}.wsl"/>
395 </exec>
397 <exec executable="perl" resultproperty="ook">
398 <arg value="lib/compare-m-w.pl"/>
399 <arg value="${file.dir}/outputs"/>
400 <arg value="${file.out}"/>
401 </exec>
403 </target>
405 <target name="test-w-wt">
407 <basename property="file.out" file="${inputfile}" suffix=".txt"/>
409 <exec executable="${fermat.dir}/bin/wsl"
410 input="${inputfile}"
411 error="${samples.temp.dir}/outputs/${file.out}.errwsl"
412 output="${samples.temp.dir}/outputs/${file.out}.outwsl" >
413 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
414 <env key="FermaT" path="${fermat.dir}" />
415 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
416 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
417 <arg value="${file.dir}/${file.name}.wsl"/>
418 </exec>
420 <exec executable="${fermat.dir}/bin/wsl"
421 input="${inputfile}"
422 error="${samples.temp.dir}/outputs/${file.out}.errwslt"
423 output="${samples.temp.dir}/outputs/${file.out}.outwslt" >
424 <env key="PATH" path="${fermat.dir}/bin:${env.PATH}"/>
425 <env key="FermaT" path="${fermat.dir}" />
426 <env key="SCHEME_LIBRARY_PATH" path="${fermat.dir}/slib/" />
427 <env key="SCM_INIT_PATH" path="${fermat.dir}/scm/Init5e7.scm" />
428 <arg value="${file.dir}/${file.name}${transf.wsl.ext}"/>
429 </exec>
431 <exec executable="perl">
432 <arg value="lib/compare-w-wt.pl"/>
433 <arg value="${file.dir}/outputs"/>
434 <arg value="${file.out}"/>
435 </exec>
436 </target>
438 <target name="test-fn">
439 <basename property="file.name" file="${filename}" suffix=".obj"/>
440 <dirname property="file.dir" file="${filename}"/>
441 <foreach param="inputfile" target="test-m-w" inheritall="true">
442 <path>
443 <fileset dir='${tests.dir}'>
444 <include name="${file.name}*.txt"/>
445 </fileset>
446 </path>
447 </foreach>
448 </target>
450 <target name="test-fn-t">
451 <basename property="file.name" file="${filename}" suffix="${transf.wsl.ext}"/>
452 <dirname property="file.dir" file="${filename}"/>
453 <foreach param="inputfile" target="test-w-wt" inheritall="true">
454 <path>
455 <fileset dir='${tests.dir}'>
456 <include name="${file.name}*.txt"/>
457 </fileset>
458 </path>
459 </foreach>
460 </target>
462 <target name="test-all-m" depends="init-compare,init-time"
463 description="Run all the tests from the test directory to compare MJ and WSL" >
464 <record name="${log.file.tests.m}${time}.txt" emacsmode="true" />
465 <foreach param="filename" target="test-fn" inheritall="true">
466 <path>
467 <fileset dir='${samples.temp.dir}'>
468 <include name="*.obj"/>
469 </fileset>
470 </path>
471 </foreach>
472 <record name="${log.file.tests.m}${time}.txt" action="stop" />
473 <move file="${log.file.tests.m}.txt" tofile="${log.file.tests.m}-previous.txt" failonerror="false"/>
474 <copy file="${log.file.tests.m}${time}.txt" tofile="${log.file.tests.m}.txt"/>
475 </target>
477 <target name="test-all-t" depends="init-compare,init-time"
478 description="Run all the tests from the test directory to compare WSL and transformations" >
479 <record name="${log.file.tests.t}${time}.txt" emacsmode="true" />
480 <foreach param="filename" target="test-fn-t">
481 <path>
482 <fileset dir='${samples.temp.dir}'>
483 <include name="*${transf.wsl.ext}"/>
484 </fileset>
485 </path>
486 </foreach>
487 <record name="${log.file.tests.t}${time}.txt" action="stop" />
488 <move file="${log.file.tests.t}.txt" tofile="${log.file.tests.t}-previous.txt" failonerror="false"/>
489 <copy file="${log.file.tests.t}${time}.txt" tofile="${log.file.tests.t}.txt"/>
490 </target>
492 <target name="q-test">
493 <!-- for quick tests -->
494 <antcall target="test-fn">
495 <param name="file.name" value="Rek1"/>
496 <param name="file.dir" value="${samples.temp.dir}"/>
497 </antcall>
498 </target>
501 <!-- **************************************** -->
502 <!-- metrics -->
503 <!-- **************************************** -->
505 <target name="metrics-compare-wsl">
506 <basename property="metrics.temp.name" file="${metrics.run.filename}" suffix="${transf.wsl.ext}"/>
507 <dirname property="metrics.temp.dir" file="${metrics.run.filename}"/>
508 <antcall target="wsl-run">
509 <param name="filename" value="${metrics.wsl.file}" />
510 <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}" />
512 </antcall>
514 </target>
516 <target name="metrics-samples-compare-wsl" depends="init"
517 description="metrics on transformed wsl files (csv file)" >
519 <antcall target="wsl-run">
520 <param name="filename" value="${metrics.wsl.file}" />
521 <param name="args" value="-o ${samples.temp.dir}/0000-header${metrics.extension} -HC" />
523 </antcall>
525 <foreach param="metrics.run.filename" target="metrics-compare-wsl" parallel="true" maxthreads="${global.max.threads}">
526 <path>
527 <fileset dir='${samples.temp.dir}'>
528 <patternset refid="transformed.sources"/>
529 </fileset>
530 </path>
531 </foreach>
533 <concat destfile="${samples.temp.dir}/metrics-wsl-compare.csv">
534 <fileset dir="${samples.temp.dir}" includes="*${metrics.extension}"/>
535 </concat>
536 </target>
539 <!-- **************************************** -->
540 <!-- output serveral versions of files -->
541 <!-- **************************************** -->
543 <target name="output-all-versions"
544 description="generate variations on the translations in the 'local' folder and tar them">
545 <antcall>
546 <target name="mj-samples"/>
547 <target name="mjc2wsl-samples"/>
548 <param name="samples.temp.dir" value="local/out/headTail-proc"/>
549 <param name="mjc2wsl.options" value=""/>
550 </antcall>
551 <antcall>
552 <target name="mj-samples"/>
553 <target name="mjc2wsl-samples"/>
554 <param name="samples.temp.dir" value="local/out/headTail-inline"/>
555 <param name="mjc2wsl.options" value="--genInlinePrint"/>
556 </antcall>
557 <antcall>
558 <target name="mj-samples"/>
559 <target name="mjc2wsl-samples"/>
560 <param name="samples.temp.dir" value="local/out/popPush-inline"/>
561 <param name="mjc2wsl.options" value="--genPopPush --genInlinePrint"/>
562 </antcall>
563 <antcall>
564 <target name="mj-samples"/>
565 <target name="mjc2wsl-samples"/>
566 <param name="samples.temp.dir" value="local/out/popPush-proc"/>
567 <param name="mjc2wsl.options" value="--genPopPush"/>
568 </antcall>
569 <antcall>
570 <target name="mj-samples"/>
571 <target name="mjc2wsl-samples"/>
572 <param name="samples.temp.dir" value="local/out/popPush-glob"/>
573 <param name="mjc2wsl.options" value="--genPopPush --genGlobalVars"/>
574 </antcall>
575 <tar basedir="local/out" compression="gzip"
576 destfile="local/mjc2wsl-samples.tgz"
577 includes="*/*.wsl"/>
578 </target>
581 <!-- **************************************** -->
582 <!-- output a comparison Latex file and compile it -->
583 <!-- **************************************** -->
585 <target name="output-comparison-pdf-single">
586 <basename property="file.name" file="${filename}" suffix=".mj"/>
587 <echo append='true' file="${samples.temp.dir}/tex/comparison.tex">
588 \section{${file.name}}
589 \begin{paracol}{4}
590 \lstinputlisting[style=mj]{../${file.name}.mj}
591 \switchcolumn
592 \lstinputlisting[style=decoded]{../${file.name}.obj.decoded}
593 \switchcolumn
594 \lstinputlisting[style=wsl,lastline=200]{../${file.name}.wsl}
595 \switchcolumn
596 \lstinputlisting[style=wslt,lastline=200]{../${file.name}${transf.wsl.ext}}
597 \end{paracol}
598 </echo>
599 </target>
601 <target name="output-comparison-pdf"
602 description="Makes a parallel display in Latex and produces a pdf (tex dir in temp dir)" >
604 <copy file="lib/tex/comparison-start.tex" overwrite="true"
605 tofile="${samples.temp.dir}/tex/comparison.tex"/>
606 <foreach param="filename" target="output-comparison-pdf-single" inheritall="true">
607 <path>
608 <fileset dir='${samples.temp.dir}'>
609 <include name="*.mj"/>
610 </fileset>
611 </path>
612 </foreach>
613 <concat destfile="${samples.temp.dir}/tex/comparison.tex" append="true">
614 <filelist dir="lib/tex" files="comparison-end.tex"/>
615 </concat>
616 <antcall target="output-comparison-compile"/>
617 </target>
619 <target name="output-comparison-compile">
620 <exec command="pdflatex comparison.tex"
621 dir="${samples.temp.dir}/tex"/>
622 </target>
624 <!-- jedit specific flags; needs to be the first or the last 10 lines
625 :noTabs=true:
626 -->
627 </project>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner