source: SMC4LRT/build.xml

Last change on this file was 3666, checked in by vronk, 11 years ago

adding images, frontmater, userdocs, build
update main files: thesis and outline + utils

File size: 2.4 KB
Line 
1<?xml version="1.0"?>   
2
3
4<!-- ======================================================================
5     Date:     2011-10     
6     Project:  SMC
7     ====================================================================== -->
8
9
10       
11<project name="SMC-master"  default="smc-docs-rst2latex" basedir=".">
12       
13    <description>
14           helper targets for master
15    </description>
16       
17        <property file="build.props"/>
18
19        <target name="smc-docs-rst2latex" >
20                <antcall target="smc-doc-rst2latex" >
21                        <param name="src.fn" value="userdocs" />                                               
22                </antcall>
23                <!--<antcall target="smc-doc-rst2latex" >
24                        <param name="src.fn" location="examples" />                     
25                </antcall>
26                <antcall target="smc-doc-rst2latex" >
27                        <param name="src.fn" location="examples2" />                   
28                </antcall>
29                -->
30               
31        </target>
32        <target name="smc-doc-rst2latex" >
33                <ant antfile="${scripts.dir}\build_docs.xml" target="rst2x">
34                        <property name="output.format" value="latex" />
35                        <property name="src.file" location="${in.dir}${src.fn}.rst" />
36                        <property name="out.file" location="${out.dir}${src.fn}.tex"/>         
37                </ant>
38               
39                <exec executable="perl" input="${out.dir}${src.fn}.tex " output="${out.dir}${src.fn}_cleaned.tex">
40                        <arg value="${scripts.dir}/autodocs/cleantexfromrst.pl" />
41                        <arg value="${images.dir}"/>         
42                </exec>
43                        <!--
44               
45                <ant antfile="${scripts.dir}\build_docs.xml" target="rst2x">
46                        <property name="output.format" value="latex" />
47                        <property name="src.file" location="${in.dir}examples2.rst" />
48                        <property name="out.file" location="${out.dir}examples2.tex"/>         
49                </ant>          -->
50        </target>
51 
52  <target name="extract-refs" >
53        <concat destfile="zx_metares/chapters_concat.txt">
54                <fileset dir="${out.dir}" includes="*.tex"/>
55                <fileset dir="images" includes="*.tex"/>
56        </concat>
57        <exec executable="perl" input="zx_metares/chapters_concat.txt" output="zx_metares/refs_list.txt">
58                <arg value="${scripts.dir}/autodocs/extractrefsromrtex.pl" />                     
59                <arg value="list" />
60        </exec>
61       
62        <exec executable="perl" input="zx_metares/chapters_concat.txt" output="zx_metares/refs.dot">
63                <arg value="${scripts.dir}/autodocs/extractrefsromrtex.pl" />                     
64                <arg value="graph" />
65        </exec>         
66  </target>     
67
68        <exec executable="dot">                                                 
69                <arg value="zx_metares/refs.dot" />
70                <arg value="-ozx_metares/refs.png"/>
71                <arg value="-Tpng"/>   
72        </exec>
73
74        <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
75       
76
77</project>
78
Note: See TracBrowser for help on using the repository browser.