author | Kevin Walker <kevin@canyon23.net> |
Tue, 13 Jul 2010 12:47:49 -0600 | |
changeset 435 | 84834a1fdd50 |
parent 404 | 7af6c89aa795 |
child 561 | 77a80f91e214 |
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="**" |
|
376 | 44 |
excludes="synctex.*,*.dvi,*.ps,*.pdf,*.png,${arxivTarFile},${arxivTarFile}.gz,sandbox.*,bibliography/**,papers/**,talks/**,diagrams/obsolete/**,.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"> |
404
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
66 |
<exec executable="svn" dir="../../Sites/tqft.net/papers/"> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
67 |
<arg value="up"/> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
68 |
<arg value="--accept"/> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
69 |
<arg value="theirs-full"/> |
7af6c89aa795
fixing problem in build script
Scott Morrison <scott@tqft.net>
parents:
376
diff
changeset
|
70 |
</exec> |
67 | 71 |
<copy file="blob1.pdf" tofile="../../Sites/tqft.net/papers/blobs.pdf"/> |
72 |
<exec executable="svn" dir="../../Sites/tqft.net/papers/"> |
|
21 | 73 |
<arg value="commit"/> |
74 |
<arg value="-m"/> |
|
75 |
<arg value="blob"/> |
|
76 |
</exec> |
|
77 |
<exec executable="ssh"> |
|
121 | 78 |
<arg value="scottmorrison@tqft.net"/> |
21 | 79 |
<arg value="svn"/> |
80 |
<arg value="up"/> |
|
81 |
<arg value="tqft.net"/> |
|
82 |
</exec> |
|
8 | 83 |
</target> |
84 |
</project> |