ProgTutorial/document/build
author Christian Urban <urbanc@in.tum.de>
Mon, 17 Sep 2012 00:07:40 +0100
changeset 537 308ba2488d40
parent 536 31d06b5cada4
child 549 4d7543f48476
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
536
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/bash
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
set -e
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
FORMAT="$1"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
VARIANT="$2"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
hg parent --template '{date|shortdate}' > tip.tex
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
"$ISABELLE_TOOL" version > version.tex
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
"$ISABELLE_TOOL" latex -o "$FORMAT"
537
308ba2488d40 updated
Christian Urban <urbanc@in.tum.de>
parents: 536
diff changeset
    13
"$ISABELLE_TOOL" latex -o "$FORMAT"
536
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
"$ISABELLE_TOOL" latex -o bbl
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
makeindex -o root.stu root.str
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
"$ISABELLE_TOOL" latex -o "$FORMAT"
537
308ba2488d40 updated
Christian Urban <urbanc@in.tum.de>
parents: 536
diff changeset
    18
cp root.pdf ../document.pdf
536
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
mv root.pdf ../progtutorial.pdf
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
#"$ISABELLE_HOME/doc-src/sedindex" root
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
#+[ -f root.out ] && "$ISABELLE_HOME/doc-src/fixbookmarks" root.out
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
#+"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
#+"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
#$(ISABELLE_TOOL) document -o pdf  ProgTutorial/generated
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
#	makeindex -o ProgTutorial/generated/root.stu ProgTutorial/generated/root.str