pkgsrc-wip/cjk-latex/DEINSTALL
Chris Pinnock 434a11b1b5 Initial import of cjk-latex 4.5.1 into pkgsrc-wip.
This is a LaTeX2e macro package enabling the use of CJK scripts
(Chinese/Japanese/Korean).

Supplied in NetBSD PR#13375 from Rui-Xiang Guo.
2003-04-18 09:40:00 +00:00

26 lines
393 B
Bash

#!/bin/sh
#
STAGE=$2
TEXMFMAIN=@TEXMFMAIN@
TEXMFCNF=${TEXMFMAIN}/web2c/texmf.cnf
case ${STAGE} in
DEINSTALL)
;;
POST-DEINSTALL)
echo "Edit ${TEXMFCNF}"
sed -e "/ttf2pk/d" ${TEXMFCNF} > ${TEXMFCNF}.tmp
sed -e "/ttf2tfm/d" ${TEXMFCNF}.tmp > ${TEXMFCNF}
rm -f ${TEXMFCNF}.tmp
echo "Update ls-R"
mktexlsr
;;
*)
echo "Unexpected argument: ${STAGE}"
exit 1
;;
esac
exit 0