src/Doc/Codegen/document/build
author wenzelm
Thu, 10 Mar 2016 17:30:04 +0100
changeset 62589 b5783412bfed
parent 59376 ead400fd6484
child 73723 1bbbaae6b5e3
permissions -rwxr-xr-x
prefer plain "isabelle" from PATH within Isabelle settings environment;

#!/usr/bin/env bash

set -e

FORMAT="$1"
VARIANT="$2"

# ad-hoc patching of temporary path from sources
perl -i -pe 's/\{\\isachardollar\}ISABELLE\{\\isacharunderscore\}TMP\{\\isacharslash\}examples/examples/g' *.tex

isabelle logo Isar
"$ISABELLE_HOME/src/Doc/prepare_document" "$FORMAT"

# clean up afterwards
rm -rf "${ISABELLE_TMP}/examples"