blob: 9534dcca0197089fe5f190d694e1cfce91b930e5 (
plain) (
blame)
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
|
#!/bin/sh
# $FreeBSD$
[ $# != 2 ] && exit 1
PKGNAME=$1
ACTION=$2
PATH="${PATH}:/usr/bin:/usr/local/bin:${PKG_PREFIX}/bin"
MKTEXLSR=mktexlsr
SETENV=env
UPDMAP=updmap
case "$ACTION" in
POST-INSTALL)
${SETENV} PATH="${PATH}" ${MKTEXLSR}
${SETENV} PATH="${PATH}" ${UPDMAP} --enable Map ec-mftrace.map
;;
DEINSTALL)
${SETENV} PATH="${PATH}" ${MKTEXLSR}
${SETENV} PATH="${PATH}" ${UPDMAP} --disable ec-mftrace.map
;;
PRE-INSTALL|POST-DEINSTALL)
;;
*)
exit 1
;;
esac
exit
|