blob: b4150270d6c1fd68c4803cc15b2ebde95e79719a (
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.1.1.1 2002/09/13 22:35:01 jlam Exp $
ADOBE_RESOURCEDIR="@ADOBE_RESOURCEDIR@"
GS_RESOURCEDIR="@GS_RESOURCEDIR@"
PKG_INFO="@PKG_INFO@"
FONTFILES=` \
${PKG_INFO} -f adobe-cidfonts | \
${AWK} '/File:.*\/Resource\/CIDFont\// { print $2 }' \
`
case ${STAGE} in
POST-INSTALL)
for file in ${FONTFILES}; do
base=`${BASENAME} $file`
dest="${GS_RESOURCEDIR}/CIDFont/$base"
src="../../../../$file"
${RM} -f $dest
${LN} -sf $src $dest
done
;;
DEINSTALL)
for file in ${FONTFILES}; do
base=`${BASENAME} $file`
dest="${GS_RESOURCEDIR}/CIDFont/$base"
${RM} -f $dest
done
;;
esac
|