aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/CJK/pkg-deinstall
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-10-04 22:54:30 +0800
committerkevlo <kevlo@FreeBSD.org>2000-10-04 22:54:30 +0800
commitdeabfe83e181a75b34e54703dd5621648dd4a386 (patch)
tree1b0ecada9e4b86d8de930dd5cb1bc3f97bf1ff9e /chinese/CJK/pkg-deinstall
parent4bc2d6e2ffb068dabd0e8a66cbae91c9fe3353e5 (diff)
downloadfreebsd-ports-graphics-deabfe83e181a75b34e54703dd5621648dd4a386.tar.gz
freebsd-ports-graphics-deabfe83e181a75b34e54703dd5621648dd4a386.tar.zst
freebsd-ports-graphics-deabfe83e181a75b34e54703dd5621648dd4a386.zip
Update to the lastest version.
PR: 21733 Submitted by: MAINTAINER
Diffstat (limited to 'chinese/CJK/pkg-deinstall')
-rw-r--r--chinese/CJK/pkg-deinstall35
1 files changed, 35 insertions, 0 deletions
diff --git a/chinese/CJK/pkg-deinstall b/chinese/CJK/pkg-deinstall
new file mode 100644
index 00000000000..f652ce9f0da
--- /dev/null
+++ b/chinese/CJK/pkg-deinstall
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# Run just once.
+if [ "x$2" != "xDEINSTALL" ]; then
+ exit 0
+fi
+
+TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
+TEXMFCNF=${TEXMFMAIN}/web2c/texmf.cnf
+SPECIALMAP=${TEXMFMAIN}/fontname/special.map
+
+# Edit web2c/texmf.cnf
+sed -e "/ttf2pk/d" ${TEXMFCNF} > ${TEXMFCNF}.tmp
+sed -e "/ttf2tfm/d" ${TEXMFCNF}.tmp > ${TEXMFCNF}
+rm -f ${TEXMFCNF}.tmp
+
+# Edit fontname/special.map
+sed -e "/Arphic/d" ${SPECIALMAP} > ${SPECIALMAP}.tmp
+sed -e "/^arb5/d" ${SPECIALMAP}.tmp > ${SPECIALMAP}
+sed -e "/^argb/d" ${SPECIALMAP} > ${SPECIALMAP}.tmp
+mv -f ${SPECIALMAP}.tmp ${SPECIALMAP}
+
+# Delete symbolic links
+rm -f ${TEXMFMAIN}/ttf2tfm
+rm -f ${TEXMFMAIN}/fonts/truetype/arphic/arb5_kai.ttf
+rm -f ${TEXMFMAIN}/fonts/truetype/arphic/arb5_sung.ttf
+rm -f ${TEXMFMAIN}/fonts/truetype/arphic/argb_kai.ttf
+rm -f ${TEXMFMAIN}/fonts/truetype/arphic/argb_sung.ttf
+
+#
+# Update ls-R. We have to run twice to get correct result.
+# Strange bug of texconfig.
+#
+texconfig rehash
+texconfig rehash