diff options
Diffstat (limited to 'www/surfraw/pkg/DEINSTALL')
-rw-r--r-- | www/surfraw/pkg/DEINSTALL | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/www/surfraw/pkg/DEINSTALL b/www/surfraw/pkg/DEINSTALL index 37485383cea..c0a16db1c8c 100644 --- a/www/surfraw/pkg/DEINSTALL +++ b/www/surfraw/pkg/DEINSTALL @@ -1,10 +1,11 @@ #!/bin/sh # -# $NetBSD: DEINSTALL,v 1.1 2000/10/31 13:48:39 jlam Exp $ +# $NetBSD: DEINSTALL,v 1.2 2000/12/06 07:55:14 jlam Exp $ PKGNAME=$1 STAGE=$2 +SAMPLECONFDIR=${PKG_PREFIX}/etc CONFDIR=${PKG_PREFIX}/etc CONFFILES="surfraw.conf" @@ -16,14 +17,14 @@ DEINSTALL) for file in ${CONFFILES} do FILE=${CONFDIR}/${file} - if diff -q ${FILE} ${FILE}.dist >/dev/null + SAMPLEFILE=${SAMPLECONFDIR}/${file}.dist + if diff -q ${FILE} ${SAMPLEFILE} >/dev/null then rm -f ${FILE} fi done ;; POST-DEINSTALL) - CONFDIR=${PKG_PREFIX}/etc modified_files='' for file in ${CONFFILES} do |