diff options
Diffstat (limited to 'fonts/ghostscript-cmaps/INSTALL')
-rw-r--r-- | fonts/ghostscript-cmaps/INSTALL | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/fonts/ghostscript-cmaps/INSTALL b/fonts/ghostscript-cmaps/INSTALL index aca4e99dc24..6e54273bd10 100644 --- a/fonts/ghostscript-cmaps/INSTALL +++ b/fonts/ghostscript-cmaps/INSTALL @@ -1,32 +1,19 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.2 2002/09/13 22:38:33 jlam Exp $ +# $NetBSD: INSTALL,v 1.3 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-cmaps | \ - ${AWK} '/File:.*\/Resource\/CMap\// { print $2 }' \ -` - case ${STAGE} in POST-INSTALL) - for file in ${FONTFILES}; do - base=`${BASENAME} $file` + ${PKG_INFO} -qL adobe-cmaps | ${GREP} "/Resource/CMap/" | + while read src; do + base=`${BASENAME} $src` 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 |