mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
96ec407787
PR: ports/39361 Submitted by: Statue <statue@freebsd.sinica.edu.tw>
11 lines
374 B
Bash
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
|