summaryrefslogtreecommitdiff
path: root/mail/exmh2/scripts
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>1998-03-20 09:28:16 +0000
committerMark Murray <markm@FreeBSD.org>1998-03-20 09:28:16 +0000
commit0a239bd934a142c5d22b6cde93a62894f085696f (patch)
treea66ff31bf93fc3277c0cd68e7b31e3e5807baedb /mail/exmh2/scripts
parentBuild from the latest release candidate. Port update facilitated by: The Gra... (diff)
Allow this port to use NMH if USE_NMH is set.
Notes
Notes: svn path=/head/; revision=10231
Diffstat (limited to 'mail/exmh2/scripts')
-rw-r--r--mail/exmh2/scripts/build9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/exmh2/scripts/build b/mail/exmh2/scripts/build
index 7450c446b64c..536bcfa73819 100644
--- a/mail/exmh2/scripts/build
+++ b/mail/exmh2/scripts/build
@@ -1,12 +1,17 @@
#! /bin/sh
#
-# $Id: build,v 1.4 1997/08/14 03:44:30 peter Exp $
+# $Id: build,v 1.5 1997/08/21 08:09:56 peter Exp $
#
VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
DATE="`sed -ne 's/^set date \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
SEDFILE=sed.$$
+if [ x${USE_NMH} = xYES ] ; then
+ CONFIGFILE=config.nmh
+else
+ CONFIGFILE=config.mh
+fi
EXPECT="{}"
EXPECTK="{}"
@@ -50,7 +55,7 @@ if [ "${EXPECT}" != "{}" ]; then
fi
echo "/^#CONFIGURATION/a\\" >>${SEDFILE}
-sed <${FILESDIR}/config \
+sed <${FILESDIR}/${CONFIGFILE} \
-e "s+!!PREFIX!!+${PREFIX}+g" \
-e "s+!!WISH!!+${WISH}+g" \
-e "s+!!EXPECT!!+${EXPECT}+g" \