author | Kevin Walker <kevin@canyon23.net> |
Mon, 12 Dec 2011 15:01:37 -0800 | |
changeset 961 | c57afb230bb1 |
parent 633 | 2906548b2a95 |
permissions | -rw-r--r-- |
8 | 1 |
<!-- This is an Ant build file; you'll need to install Ant before using it. --> |
633 | 2 |
<project name="pnas" default="usage"> |
8 | 3 |
<target name="init"> |
633 | 4 |
<property name="arxivTarFile" value="pnas.tar"/> |
8 | 5 |
</target> |
6 |
||
7 |
<!-- USAGE --> |
|
8 |
<!-- Instructions for using the build file --> |
|
9 |
<!-- =================================================================== --> |
|
10 |
<target name = "usage" depends = "init"> |
|
11 |
<echo message = ""/> |
|
21 | 12 |
<echo message = "blob build instructions"/> |
8 | 13 |
<echo message = "-------------------------------------------------------------"/> |
14 |
<echo message = ""/> |
|
15 |
<echo message = " available targets are:"/> |
|
16 |
<echo message = ""/> |
|
21 | 17 |
<echo message = " arxiv --> builds blob.tar.gz, for submission to the arxiv"/> |
18 |
<echo message = " pdf --> builds blob.pdf"/> |
|
8 | 19 |
<echo message = ""/> |
20 |
<echo message = "-------------------------------------------------------------"/> |
|
21 |
<echo message = ""/> |
|
22 |
</target> |
|
23 |
<!-- =================================================================== --> |
|
24 |
||
25 |
<target name="clean" depends="init"> |
|
26 |
<delete> |
|
27 |
<fileset dir="."> |
|
28 |
<include name="*.toc"/> |
|
29 |
<include name="*.log"/> |
|
30 |
<include name="*.aux"/> |
|
31 |
<include name="*.blg"/> |
|
32 |
<include name="*.xyc"/> |
|
33 |
<include name="*.out"/> |
|
34 |
</fileset> |
|
35 |
</delete> |
|
36 |
</target> |
|
37 |
||
38 |
<target name="arxiv" depends="clean"> |
|
39 |
<delete file="${arxivTarFile}"/> |
|
40 |
<delete file="${arxivTarFile}.gz"/> |
|
41 |
<tar destfile="${arxivTarFile}" basedir="." includes="**" |
|
633 | 42 |
excludes="*.synctex*,*.dvi,*.ps,pnas.pdf,*.png,${arxivTarFile},${arxivTarFile}.gz,sandbox.*,bibliography/**,papers/**,talks/**,diagrams/obsolete/**,diagrams/latex2pdf/**,text/obsolete/**,.hg/**" |
8 | 43 |
/> |
44 |
<gzip src="${arxivTarFile}" destfile="${arxivTarFile}.gz"/> |
|
45 |
<delete file="${arxivTarFile}"/> |
|
46 |
</target> |
|
47 |
||
48 |
<target name="bbl" depends="init"> |
|
370
0680b6cd90cf
beginning to update deligne diagrams
Scott Morrison <scott@tqft.net>
parents:
361
diff
changeset
|
49 |
<exec executable="pdflatex"> |
633 | 50 |
<arg value="pnas"/> |
8 | 51 |
</exec> |
52 |
<exec executable="bibtex"> |
|
633 | 53 |
<arg value="pnas"/> |
8 | 54 |
</exec> |
55 |
</target> |
|
56 |
||
370
0680b6cd90cf
beginning to update deligne diagrams
Scott Morrison <scott@tqft.net>
parents:
361
diff
changeset
|
57 |
<target name="pdf" depends="bbl"> |
121 | 58 |
<exec executable="pdflatex"> |
633 | 59 |
<arg value="pnas"/> |
121 | 60 |
</exec> |
61 |
</target> |
|
8 | 62 |
|
370
0680b6cd90cf
beginning to update deligne diagrams
Scott Morrison <scott@tqft.net>
parents:
361
diff
changeset
|
63 |
<target name="copy-pdf" depends="pdf"> |
633 | 64 |
<exec executable="svn" dir="../../../Sites/tqft.net/papers/"> |
404
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
65 |
<arg value="up"/> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
66 |
<arg value="--accept"/> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
67 |
<arg value="theirs-full"/> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
68 |
</exec> |
633 | 69 |
<copy file="pnas.pdf" tofile="../../../Sites/tqft.net/papers/blobs-pnas.pdf"/> |
70 |
<exec executable="svn" dir="../../../Sites/tqft.net/papers/"> |
|
21 | 71 |
<arg value="commit"/> |
72 |
<arg value="-m"/> |
|
633 | 73 |
<arg value="pnas"/> |
21 | 74 |
</exec> |
75 |
<exec executable="ssh"> |
|
121 | 76 |
<arg value="scottmorrison@tqft.net"/> |
21 | 77 |
<arg value="svn"/> |
78 |
<arg value="up"/> |
|
79 |
<arg value="tqft.net"/> |
|
80 |
</exec> |
|
8 | 81 |
</target> |
82 |
</project> |