diff options
author | jlam <jlam> | 2001-07-13 07:09:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-07-13 07:09:17 +0000 |
commit | 9301100af50bc784e0f352cf457e9090fc7b005d (patch) | |
tree | 6f97936deeb9a539bc07b5007be8c72a20640428 /mail/sq-squirrelspell/pkg/DEINSTALL | |
parent | 1142e8b40d1d1d9f6ce4570b4e17182c30da66e4 (diff) | |
download | pkgsrc-9301100af50bc784e0f352cf457e9090fc7b005d.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/DEINSTALL | 5 |
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 |