1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-08 19:00:33 +00:00
pdf2htmlEX/bin/pdf2htmlEX.in

23 lines
400 B
Plaintext
Raw Normal View History

2012-08-04 18:03:53 +00:00
#!/bin/bash
2012-08-06 18:13:54 +00:00
set -e
2012-08-14 05:56:41 +00:00
LIBDIR=@CMAKE_INSTALL_PREFIX@/lib/pdf2htmlEX
2012-08-10 13:41:24 +00:00
TMPDIR=/tmp/pdf2htmlEX
# prepare the temporary directory
test -d $TMPDIR || mkdir -p $TMPDIR
rm -f $TMPDIR/* 2>/dev/null
2012-08-14 05:56:41 +00:00
$LIBDIR/pdf2htmlEX $*
2012-08-04 18:03:53 +00:00
2012-08-10 13:41:24 +00:00
if [ -f $TMPDIR/convert.pe ]; then
echo -n "Converting fonts: "
2012-08-10 13:41:24 +00:00
fontforge -script $TMPDIR/convert.pe 2>/dev/null
echo "."
fi
2012-08-06 17:52:31 +00:00
2012-08-10 13:41:24 +00:00
#clean
2012-08-10 15:40:57 +00:00
#rm -f $TMPDIR/* 2>/dev/null
2012-08-06 17:52:31 +00:00
echo "Done."