#!/bin/bash set -e LIBDIR=@CMAKE_INSTALL_PREFIX@/lib/pdf2htmlEX TMPDIR=/tmp/pdf2htmlEX # prepare the temporary directory test -d $TMPDIR || mkdir -p $TMPDIR rm -f $TMPDIR/* 2>/dev/null $LIBDIR/pdf2htmlEX $* if [ -f $TMPDIR/convert.pe ]; then echo -n "Converting fonts: " fontforge -script $TMPDIR/convert.pe 2>/dev/null echo "." fi #clean #rm -f $TMPDIR/* 2>/dev/null echo "Done."