ProgTutorial/document/build
author Christian Urban <urbanc@in.tum.de>
Tue, 28 Aug 2012 21:23:32 +0100
changeset 536 31d06b5cada4
child 537 308ba2488d40
permissions -rwxr-xr-x
added build for document
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"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
"$ISABELLE_TOOL" latex -o bbl
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
makeindex -o root.stu root.str
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
"$ISABELLE_TOOL" latex -o "$FORMAT"
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
mv root.pdf ../progtutorial.pdf
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
#"$ISABELLE_HOME/doc-src/sedindex" root
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
#+[ -f root.out ] && "$ISABELLE_HOME/doc-src/fixbookmarks" root.out
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
#+"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
#+"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
#$(ISABELLE_TOOL) document -o pdf  ProgTutorial/generated
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
#	makeindex -o ProgTutorial/generated/root.stu ProgTutorial/generated/root.str