1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/chinese/CJK/pkg-deinstall
Xin LI 8873423497 Several improvements over chinese/CJK port, to make it possible to
support CJK PDF builds.

Submitted by:	intron <intron at intron ac>
Approved by:	Rong-En Fan <rafan at infor org> (maintainer, with changes)
Approved by:	clive
2006-03-16 06:22:02 +00:00

29 lines
645 B
Bash

#!/bin/sh
LOCALBASE=/usr/local
PATH=/bin:/usr/bin:${LOCALBASE}/bin; export PATH
if [ "x$2" = "xDEINSTALL" ]; then
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
TEXMFCNF=${TEXMFMAIN}/web2c/texmf.cnf
CJKTTFDIR=${TEXMFMAIN}/fonts/truetype/CJK
CJKTFMDIR=${TEXMFMAIN}/fonts/tfm/CJK
# Delete symbolic links of TrueType font files
cd ${CJKTTFDIR} && rm -f arb5kai.ttf arb5sung.ttf argbkai.ttf argbsung.ttf
find ${CJKTFMDIR} -type l -and -name \*.tfm| xargs -n 10 rm -f
exit 0
fi
if [ "x$2" = "xPOST-DEINSTALL" ]; then
mktexlsr
updmap-sys --disable CJK-type1.map
# Contents in pdftex.map from CJK-pdftex.map are eliminated by updmap
exit 0
fi