c46655bdd1
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)
11 lines
351 B
Bash
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
|