author | Scott Morrison <scott@tqft.net> |
Thu, 17 Jun 2010 21:16:05 -0700 | |
changeset 374 | abcbb32288b2 |
parent 370 | 0680b6cd90cf |
child 376 | 1ce74e992a72 |
permissions | -rw-r--r-- |
8 | 1 |
<!-- This is an Ant build file; you'll need to install Ant before using it. --> |
21 | 2 |
<project name="blob" default="usage"> |
8 | 3 |
<target name="init"> |
21 | 4 |
<property name="arxivTarFile" value="blob.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 = " dvi --> builds blob.dvi"/> |
|
19 |
<echo message = " ps --> builds blob.ps"/> |
|
20 |
<echo message = " pdf --> builds blob.pdf"/> |
|
8 | 21 |
<echo message = ""/> |
22 |
<echo message = "-------------------------------------------------------------"/> |
|
23 |
<echo message = ""/> |
|
24 |
</target> |
|
25 |
<!-- =================================================================== --> |
|
26 |
||
27 |
<target name="clean" depends="init"> |
|
28 |
<delete> |
|
29 |
<fileset dir="."> |
|
30 |
<include name="*.toc"/> |
|
31 |
<include name="*.log"/> |
|
32 |
<include name="*.aux"/> |
|
33 |
<include name="*.blg"/> |
|
34 |
<include name="*.xyc"/> |
|
35 |
<include name="*.out"/> |
|
36 |
</fileset> |
|
37 |
</delete> |
|
38 |
</target> |
|
39 |
||
40 |
<target name="arxiv" depends="clean"> |
|
41 |
<delete file="${arxivTarFile}"/> |
|
42 |
<delete file="${arxivTarFile}.gz"/> |
|
43 |
<tar destfile="${arxivTarFile}" basedir="." includes="**" |
|
361 | 44 |
excludes="synctex.*,*.dvi,*.ps,*.pdf,*.png,${arxivTarFile},${arxivTarFile}.gz,sandbox.*,bibliography/**,papers/**,talks/**,diagrams/scripts/**,diagrams/eps/**,diagrams/latex2pdf/**,diagrams/*,.hg/**" |
8 | 45 |
/> |
46 |
<gzip src="${arxivTarFile}" destfile="${arxivTarFile}.gz"/> |
|
47 |
<delete file="${arxivTarFile}"/> |
|
48 |
</target> |
|
49 |
||
50 |
<target name="bbl" depends="init"> |
|
370
0680b6cd90cf
beginning to update deligne diagrams
Scott Morrison <scott@tqft.net>
parents:
361
diff
changeset
|
51 |
<exec executable="pdflatex"> |
21 | 52 |
<arg value="blob1"/> |
8 | 53 |
</exec> |
54 |
<exec executable="bibtex"> |
|
21 | 55 |
<arg value="blob1"/> |
8 | 56 |
</exec> |
57 |
</target> |
|
58 |
||
370
0680b6cd90cf
beginning to update deligne diagrams
Scott Morrison <scott@tqft.net>
parents:
361
diff
changeset
|
59 |
<target name="pdf" depends="bbl"> |
121 | 60 |
<exec executable="pdflatex"> |
61 |
<arg value="blob1"/> |
|
62 |
</exec> |
|
63 |
</target> |
|
8 | 64 |
|
370
0680b6cd90cf
beginning to update deligne diagrams
Scott Morrison <scott@tqft.net>
parents:
361
diff
changeset
|
65 |
<target name="copy-pdf" depends="pdf"> |
67 | 66 |
<copy file="blob1.pdf" tofile="../../Sites/tqft.net/papers/blobs.pdf"/> |
67 |
<exec executable="svn" dir="../../Sites/tqft.net/papers/"> |
|
21 | 68 |
<arg value="commit"/> |
69 |
<arg value="-m"/> |
|
70 |
<arg value="blob"/> |
|
71 |
</exec> |
|
72 |
<exec executable="ssh"> |
|
121 | 73 |
<arg value="scottmorrison@tqft.net"/> |
21 | 74 |
<arg value="svn"/> |
75 |
<arg value="up"/> |
|
76 |
<arg value="tqft.net"/> |
|
77 |
</exec> |
|
8 | 78 |
</target> |
79 |
</project> |