1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 17:48:38 +00:00
pdf2htmlEX/bin/pdf2htmlEX.in
2012-08-14 13:56:41 +08:00

23 lines
400 B
Bash
Executable File

#!/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."