summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-03-26 15:30:27 +0000
committernia <nia@pkgsrc.org>2020-03-26 15:30:27 +0000
commite38370a62f2121c84dab7dfe7c992f8bbad13c23 (patch)
treeecb7989f4ae979b33546346f7ff9fed422ff85ed /bootstrap/bootstrap
parent0fddaae1cd806570bd0b6b83fddcc6c736b2b63a (diff)
downloadpkgsrc-e38370a62f2121c84dab7dfe7c992f8bbad13c23.tar.gz
bootstrap: Allow overriding EGREP/FGREP.
Makes bootstrapping on minimal Linux systems that don't include these binaries in a normal location less broken. from Michael Forney
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap10
1 files changed, 9 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 438deaa5d75..47a8c1d879a 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.276 2020/03/22 16:40:19 rillig Exp $
+# $NetBSD: bootstrap,v 1.277 2020/03/26 15:30:27 nia Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -1316,6 +1316,14 @@ if test -n "$GREP"; then
echo "TOOLS_PLATFORM.grep?= $GREP" >> ${TARGET_MKCONF}
echo "TOOLS_PLATFORM.grep?= $GREP" >> ${BOOTSTRAP_MKCONF}
fi
+if test -n "$EGREP"; then
+ echo "TOOLS_PLATFORM.egrep?= $EGREP" >> ${TARGET_MKCONF}
+ echo "TOOLS_PLATFORM.egrep?= $EGREP" >> ${BOOTSTRAP_MKCONF}
+fi
+if test -n "$FGREP"; then
+ echo "TOOLS_PLATFORM.fgrep?= $FGREP" >> ${TARGET_MKCONF}
+ echo "TOOLS_PLATFORM.fgrep?= $FGREP" >> ${BOOTSTRAP_MKCONF}
+fi
if test -n "$ID"; then
echo "TOOLS_PLATFORM.id?= $ID" >> ${TARGET_MKCONF}
echo "TOOLS_PLATFORM.id?= $ID" >> ${BOOTSTRAP_MKCONF}