summaryrefslogtreecommitdiff
path: root/fonts/ghostscript-cmaps/INSTALL
blob: aca4e99dc2497b389df800c9f6937f4b41601c69 (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
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.2 2002/09/13 22:38:33 jlam Exp $

ADOBE_RESOURCEDIR="@ADOBE_RESOURCEDIR@"
GS_RESOURCEDIR="@GS_RESOURCEDIR@"
PKG_INFO="@PKG_INFO@"

FONTFILES=`								\
	${PKG_INFO} -f adobe-cmaps |					\
	${AWK} '/File:.*\/Resource\/CMap\// { print $2 }'		\
`

case ${STAGE} in
POST-INSTALL)
	for file in ${FONTFILES}; do
		base=`${BASENAME} $file`
		dest="${GS_RESOURCEDIR}/CMap/$base"
		src="../../../../$file"
		${RM} -f $dest
		${LN} -sf $src $dest
	done
	;;

DEINSTALL)
	for file in ${FONTFILES}; do
		base=`${BASENAME} $file`
		dest="${GS_RESOURCEDIR}/CMap/$base"
		${RM} -f $dest
	done
	;;
esac