blob: e0f0cd018ac658713c8e1fea32dd6c0eec69f8e5 (
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
|
# $NetBSD: map-deinstall.tmpl,v 1.1 2011/11/06 08:43:28 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
|