summaryrefslogtreecommitdiff
path: root/print/texlive-tetex/DEINSTALL
blob: cf372205d7c5021936d44e51d2c5e4f793aba316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $NetBSD: DEINSTALL,v 1.1.1.1 2009/01/26 21:04:33 minskim Exp $

TEXMFSYSVAR="@VARBASE@/lib/texmf"

case "${STAGE}" in
DEINSTALL)
	# Remove font map files generated by updmap-sys.  The list of
	# files is taken from the updmap man page and matches the
	# "output files" for updmap.
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvipdfm/updmap/dvipdfm.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvipdfm/updmap/dvipdfm_dl14.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvipdfm/updmap/dvipdfm_ndl14.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvips/updmap/builtin35.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvips/updmap/download35.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvips/updmap/ps2pk.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvips/updmap/psfonts.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvips/updmap/psfonts_pk.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/dvips/updmap/psfonts_t1.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/pdftex/updmap/pdftex.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/pdftex/updmap/pdftex_dl14.map
	${RM} -f ${TEXMFSYSVAR}/fonts/map/pdftex/updmap/pdftex_ndl14.map
	${RM} -f ${TEXMFSYSVAR}/web2c/updmap.log

	# Remove stray directories.
	for dir in \
		${TEXMFSYSVAR}/web2c \
		${TEXMFSYSVAR}/fonts/map/dvipdfm/updmap \
		${TEXMFSYSVAR}/fonts/map/dvips/updmap \
		${TEXMFSYSVAR}/fonts/map/pdftex/updmap
	do
		@RMDIR@ -p "$dir" 2>/dev/null || @TRUE@
	done
	;;
esac