pkgsrc/print/texlive-tetex/files/map-deinstall.tmpl
minskim ced1d16612 Import texlive-tetex-2008 as print/texlive-tetex.
This is a collection of scripts included in teTeX.  The development of
the original teTeX ceased in 2006, and these scripts are now
maintained in TeX Live.
2009-01-26 21:04:33 +00:00

26 lines
622 B
Cheetah

# $NetBSD: map-deinstall.tmpl,v 1.1.1.1 2009/01/26 21:04:33 minskim Exp $
#
# Disable font maps and remove entries from updmap.cfg.
#
UPDMAP_CFG=${PKG_SYSCONFBASE}/texmf/web2c/updmap.cfg
case ${STAGE} in
DEINSTALL)
map_files="@MAP_FILES@"
for map in $map_files ; do
${GREP} -v "^Map ${map}" ${UPDMAP_CFG} > \
${UPDMAP_CFG}.tmp &&
${MV} ${UPDMAP_CFG}.tmp ${UPDMAP_CFG}
done
mixedmap_files="@MIXEDMAP_FILES@"
for map in $mixedmap_files ; do
${GREP} -v "^MixedMap ${map}" ${UPDMAP_CFG} > \
${UPDMAP_CFG}.tmp &&
${MV} ${UPDMAP_CFG}.tmp ${UPDMAP_CFG}
done
@UPDMAP_SYS@
;;
*)
;;
esac