#!/bin/sh

ROOT=..

makeindex const
touch modconst.ind
export TEXINPUTS=$ROOT/const:$ROOT/commontex:$ROOT/paper-letter:$ROOT/texinputs:
#LATEXARGS="-file-line-error-style -interaction=nonstopmode"
LATEXARGS="-file-line-error-style"

if pdflatex $LATEXARGS const    # &> /dev/null  # Suppress output.
then
  echo "PDF Documentation built."
else
  echo "Problems building PDF documentation."
  ./texfilter.py < const.log
fi
