pkgsrc-wip/tex-kochi-ttf/DEINSTALL
Rui-Xiang Guo c2b7246151 Intial import tex-kochi-ttf-20060227.
TeX fonts based on Kochi TrueType fonts.
2006-02-28 01:46:47 +00:00

27 lines
582 B
Bash

#!/bin/sh
# $NetBSD: DEINSTALL,v 1.1.1.1 2006/02/28 01:46:47 rxg Exp $
PKGNAME=$1
STAGE=$2
SPECIALMAP=@TEXMFDIRS@/fonts/map/fontname/special.map
TTFONTSMAP=@TEXMFDIRS@/ttf2tfm/base/ttfonts.map
case ${STAGE} in
DEINSTALL)
;;
POST-DEINSTALL)
echo "Edit ${SPECIALMAP}"
sed -e "/ochi/d" ${SPECIALMAP} > ${SPECIALMAP}.tmp
mv -f ${SPECIALMAP}.tmp ${SPECIALMAP}
echo "Edit ${TTFONTSMAP}"
sed -e "/Kochi/d" ${TTFONTSMAP} > ${TTFONTSMAP}.tmp
sed -e "/UJIS/d" ${TTFONTSMAP}.tmp > ${TTFONTSMAP}
rm -f ${TTFONTSMAP}.tmp
;;
*)
echo "Unexpected argument: ${STAGE}"
exit 1
;;
esac