src/Doc/prepare_document
author wenzelm
Fri, 16 May 2014 17:11:56 +0200
changeset 56980 9c5220e05e04
parent 53498 05313b45a5ae
child 62589 b5783412bfed
permissions -rwxr-xr-x
proper priority for error over warning, which got mixed up in 0546e036d1c0 and 4df2727a0b5f;

#!/usr/bin/env bash

set -e

FORMAT="$1"

"$ISABELLE_TOOL" latex -o sty
cp "$ISABELLE_HOME/src/Doc/pdfsetup.sty" .

"$ISABELLE_TOOL" latex -o "$FORMAT"
"$ISABELLE_TOOL" latex -o bbl
[ -f root.idx ] && "$ISABELLE_HOME/src/Doc/sedindex" root
"$ISABELLE_TOOL" latex -o "$FORMAT"
[ -f root.out ] && "$ISABELLE_HOME/src/Doc/fixbookmarks" root.out
"$ISABELLE_TOOL" latex -o "$FORMAT"