1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/chinese/xpdf/pkg-install
Clive Lin 96ec407787 New port: zh-xpdf. This port enables xpdf to read chinese-traditional pdf.
PR: ports/39361
Submitted by: Statue <statue@freebsd.sinica.edu.tw>
2002-08-03 19:32:55 +00:00

11 lines
374 B
Bash

#!/bin/sh
if [ "$2" = "PRE-INSTALL" ]; then
exit 0
fi
XPDFRC=${PKG_PREFIX}/etc/xpdfrc
ADDRESOURCE=${PKG_PREFIX}/share/xpdf/chinese-traditional/dot.xpdfrc
/usr/bin/grep -F -v --file=${ADDRESOURCE} ${XPDFRC} > ${XPDFRC}.nochinese-traditional
/bin/rm -f ${XPDFRC}
/bin/cat ${XPDFRC}.nochinese-traditional ${ADDRESOURCE} > ${XPDFRC}
/bin/rm -f ${XPDFRC}.nochinese-traditional