freebsd-ports/japanese/xpdf/pkg-install
Norikatsu Shigemura c46655bdd1 Update to 3.00.
PR:		ports/63774[1], ports-jp/14583[2]
Submitted by:	AMAKAWA Shuhei <sa264@cam.ac.uk>
Pointed out by:	Hiroshi Morita <tyuu@on.rim.or.jp>
Approved by:	mita (blanket)
2004-04-19 10:55:31 +00:00

11 lines
351 B
Bash

#!/bin/sh
if [ "$2" = "PRE-INSTALL" ]; then
exit 0
fi
XPDFRC=${PKG_PREFIX}/etc/xpdfrc
ADDRESOURCE=${PKG_PREFIX}/share/xpdf/japanese/dot.xpdfrc
/usr/bin/sed '/^#Japanese PDF resources$/,/^#Japanese PDF resources$/d' ${XPDFRC} > ${XPDFRC}.nojapan
/bin/rm -f ${XPDFRC}
/bin/cat ${XPDFRC}.nojapan ${ADDRESOURCE} > ${XPDFRC}
/bin/rm -f ${XPDFRC}.nojapan