src/Doc/prepare_document
author wenzelm
Tue, 18 May 2021 20:19:02 +0200
changeset 73733 b13b2c1d419e
parent 73731 a1ef2589c33f
child 73740 c46ff0efa1ce
permissions -rwxr-xr-x
more robust run of makeindex (amending 0f0a2148a099, Gerwin Klein 2004), using the old status-quo of e.g. doc-src/Intro/Makefile;

#!/usr/bin/env bash

set -e

FORMAT="$1"

isabelle latex -o "$FORMAT"

if [ -f root.bib ]
then
  isabelle latex -o bbl
  isabelle latex -o "$FORMAT"
fi

isabelle latex -o "$FORMAT"

if [ -f root.idx ]
then
  "$ISABELLE_HOME/src/Doc/sedindex" root
  isabelle latex -o "$FORMAT"
fi