pkgsrc/fonts/ghostscript-cmaps/INSTALL
jlam 827643d4bb Split out deinstall portions of INSTALL scripts into DEINSTALL scripts.
This avoids the need for a confusing line of the form:

	DEINSTALL_TEMPLATE+=	path/to/INSTALL

in the package Makefile, and actually removes the need to specify it
altogether since by convention, the existence of the DEINSTALL script
is enough to add it to DEINSTALL_TEMPLATE.
2006-06-15 20:40:15 +00:00

19 lines
395 B
Text

#!/bin/sh
#
# $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@"
case ${STAGE} in
POST-INSTALL)
${PKG_INFO} -qL adobe-cmaps | ${GREP} "/Resource/CMap/" |
while read src; do
base=`${BASENAME} $src`
dest="${GS_RESOURCEDIR}/CMap/$base"
${RM} -f $dest
${LN} -sf $src $dest
done
;;
esac