summaryrefslogtreecommitdiff
path: root/mail/sq-squirrelspell/pkg/DEINSTALL
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-13 07:09:17 +0000
committerjlam <jlam>2001-07-13 07:09:17 +0000
commit03a6dd6fa68b8924591bf7640f135f0b395084b2 (patch)
tree6f97936deeb9a539bc07b5007be8c72a20640428 /mail/sq-squirrelspell/pkg/DEINSTALL
parentbb13b45fb37e28767db6b8129d33334a3c80e8ed (diff)
downloadpkgsrc-03a6dd6fa68b8924591bf7640f135f0b395084b2.tar.gz
In package Makefiles, create FILES_SUBST instead of duplicating sed
expression for substituting in DEINSTALL/INSTALL scripts. Use "${CMP} -s" instead of "diff -q" since the former is more portable across OSes.
Diffstat (limited to 'mail/sq-squirrelspell/pkg/DEINSTALL')
-rw-r--r--mail/sq-squirrelspell/pkg/DEINSTALL5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/sq-squirrelspell/pkg/DEINSTALL b/mail/sq-squirrelspell/pkg/DEINSTALL
index 69ea198f63e..f030fa455d4 100644
--- a/mail/sq-squirrelspell/pkg/DEINSTALL
+++ b/mail/sq-squirrelspell/pkg/DEINSTALL
@@ -1,11 +1,12 @@
#!/bin/sh
#
-# $NetBSD: DEINSTALL,v 1.1.1.1 2001/05/16 07:57:24 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.2 2001/07/13 07:09:19 jlam Exp $
PKGNAME=$1
STAGE=$2
CAT="@CAT@"
+CMP="@CMP@"
RM="@RM@"
RMDIR="@RMDIR@"
TRUE="@TRUE@"
@@ -21,7 +22,7 @@ DEINSTALL)
#
FILE=${CONFDIR}/sqspell_config.php
SAMPLEFILE=${CONFDIR}/sqspell_config.dist
- if diff -q ${FILE} ${SAMPLEFILE} >/dev/null
+ if ${CMP} -s ${FILE} ${SAMPLEFILE}
then
${RM} -f ${FILE}
fi