ProgTutorial/document/build
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Wed, 28 May 2014 12:41:09 +0100
changeset 556 3c214b215f7e
parent 549 4d7543f48476
child 559 ffa5c4ec9611
permissions -rwxr-xr-x
some small updates for Isabelle and corrections in the Parsing chapter
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
549
4d7543f48476 made build-script more robust
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 537
diff changeset
     3
ISABELLE_PDFLATEX="pdflatex"
4d7543f48476 made build-script more robust
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 537
diff changeset
     4
536
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
set -e
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
FORMAT="$1"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
VARIANT="$2"
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
hg parent --template '{date|shortdate}' > tip.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" version > version.tex
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
"$ISABELLE_TOOL" latex -o "$FORMAT"
537
308ba2488d40 updated
Christian Urban <urbanc@in.tum.de>
parents: 536
diff changeset
    15
"$ISABELLE_TOOL" latex -o "$FORMAT"
536
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
"$ISABELLE_TOOL" latex -o bbl
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
makeindex -o root.stu root.str
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
"$ISABELLE_TOOL" latex -o "$FORMAT"
537
308ba2488d40 updated
Christian Urban <urbanc@in.tum.de>
parents: 536
diff changeset
    20
cp root.pdf ../document.pdf
536
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
mv root.pdf ../progtutorial.pdf
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
#"$ISABELLE_HOME/doc-src/sedindex" root
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
#+[ -f root.out ] && "$ISABELLE_HOME/doc-src/fixbookmarks" root.out
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
#+"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
#+"$ISABELLE_TOOL" latex -o "$FORMAT"
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
#$(ISABELLE_TOOL) document -o pdf  ProgTutorial/generated
31d06b5cada4 added build for document
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
#	makeindex -o ProgTutorial/generated/root.stu ProgTutorial/generated/root.str