pkgsrc/fonts/ghostscript-cidfonts/INSTALL
jlam 0dfbee6991 Initial import of ghostscript-cidfonts-20000901.
This package enables Ghostscript to use the CID-keyed fonts provided in
the adobe-cidfonts package.
2002-09-13 22:35:01 +00:00

32 lines
637 B
Text

#!/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