src/Doc/Codegen/document/build
author wenzelm
Wed, 19 May 2021 16:35:10 +0200
changeset 73747 8c460c09665e
parent 73723 1bbbaae6b5e3
permissions -rwxr-xr-x
prefer standard document_build=lualatex --- no impact of "sedindex" in prepare_document;

#!/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_HOME/src/Doc/prepare_document" "$FORMAT"

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