aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/xpdf/pkg-install
blob: 635f01fd9a35021e2f7f508ce42b477ad8f49e6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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