Initial commit: LaTeX build script for Isabelle documents.

This commit is contained in:
Achim D. Brucker 2018-03-05 16:02:48 +00:00
parent 509df1bb86
commit 0ee387b3b4
1 changed files with 18 additions and 0 deletions

18
document-generator/bin/build Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
ISABELLE=${1:-`which isabelle`}
ISABELLE_HOME_USER=/home/brucker/.isabelle/Isabelle2017
if [ `basename $PWD` <> "document" ]; then
echo "Error: not a Isabelle document directory".
exit 1
fi
if [ ! -f root.tex ]; then
echo "Error: no root.tex found."
exit 1
fi
$ISABELLE scala $ISABELLE_HOME_USER/DOF/bin/dof_latex_converter.jar .
$ISABELLE latex