aboutsummaryrefslogtreecommitdiffstats
path: root/print/texinfo/pkg-install
blob: 6aaf1547ed43faab93709d1aba40ca11fd8e0498 (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
#!/bin/sh
# $FreeBSD$

[ $# != 2 ] && exit 1
PKGNAME=$1
ACTION=$2

PATH="${PKG_PREFIX}/bin:${LOCALBASE}/bin:/usr/bin:${PATH}"

SETENV=env
TEXHASH=texhash
TRUE=true

case "$ACTION" in

POST-INSTALL|DEINSTALL)
    ${SETENV} PATH="${PATH}" ${TEXHASH} 2>/dev/null || ${TRUE}
    ;;

PRE-INSTALL|POST-DEINSTALL)
    ;;

*)
    exit 1
    ;;
esac

exit