diff options
Diffstat (limited to 'fonts/ghostscript-cidfonts/INSTALL')
-rw-r--r-- | fonts/ghostscript-cidfonts/INSTALL | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/fonts/ghostscript-cidfonts/INSTALL b/fonts/ghostscript-cidfonts/INSTALL index b4150270d6c..b03909424d2 100644 --- a/fonts/ghostscript-cidfonts/INSTALL +++ b/fonts/ghostscript-cidfonts/INSTALL @@ -1,32 +1,19 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.1.1.1 2002/09/13 22:35:01 jlam Exp $ +# $NetBSD: INSTALL,v 1.2 2006/06/15 20:40:15 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` + ${PKG_INFO} -qL adobe-cidfonts | ${GREP} "/Resource/CIDFont/" | + while read src; do + base=`${BASENAME} $src` dest="${GS_RESOURCEDIR}/CIDFont/$base" ${RM} -f $dest + ${LN} -fs $src $dest done ;; esac |