diff options
author | jlam <jlam> | 2006-06-15 20:40:15 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-06-15 20:40:15 +0000 |
commit | 932a82763f1d3275bf2edcbf14357baabc0b8ab5 (patch) | |
tree | fdcc07230f85f6fc9861a7659692fa83b1801fd4 /fonts/ghostscript-cidfonts/DEINSTALL | |
parent | 71086553bd6cf992cc65040cf6012e9a3614375c (diff) | |
download | pkgsrc-932a82763f1d3275bf2edcbf14357baabc0b8ab5.tar.gz |
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.
Diffstat (limited to 'fonts/ghostscript-cidfonts/DEINSTALL')
-rw-r--r-- | fonts/ghostscript-cidfonts/DEINSTALL | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fonts/ghostscript-cidfonts/DEINSTALL b/fonts/ghostscript-cidfonts/DEINSTALL new file mode 100644 index 00000000000..28c6a69ac56 --- /dev/null +++ b/fonts/ghostscript-cidfonts/DEINSTALL @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2006/06/15 20:40:15 jlam Exp $ + +ADOBE_RESOURCEDIR="@ADOBE_RESOURCEDIR@" +GS_RESOURCEDIR="@GS_RESOURCEDIR@" +PKG_INFO="@PKG_INFO@" + +case ${STAGE} in +DEINSTALL) + ${PKG_INFO} -qL adobe-cidfonts | ${GREP} "/Resource/CIDFont/" | + while read src; do + base=`${BASENAME} $src` + dest="${GS_RESOURCEDIR}/CIDFont/$base" + ${RM} -f $dest + done + ;; +esac |