#!/bin/sh

SGML_CATALOG_FILES=./docbook/xml/4.2/catalog.xml
export SGML_CATALOG_FILES
DVI2BITMAP_PK_PATH=`kpsewhich pk cmr10.110pk | sed 's+/[^/]*$+/%f.%dpk+'`
export DVI2BITMAP_PK_PATH

xsltproc --catalogs -o html/en/index.html xsl/html.xsl UsersManual.xml
if [ -f html/en/tex-math-equations.tex ]; then
#  (cd html ; latex tex-math-equations.tex ; dvi2bitmap --font-mode=lasf --output-type=gif --magnification=4 --scale=5 --process=blur,transparent --resolution=144 tex-math-equations.dvi ) 
  rm -f html/en/tex-math-equations.tex
fi
