summaryrefslogtreecommitdiffstats
path: root/src/mkfile
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2025-07-22 14:42:03 +0000
committerDan Cross <cross@gajendra.net>2025-07-23 19:44:54 +0000
commit564d45b5a55adeb48f69fdecb2bf4ed1f909850b (patch)
treec1aefa9b2ff41e1d49a5cdba1d2a098e300cc76f /src/mkfile
parent28690cd427d3caacc50f3df6a3ee901eba5c5dd0 (diff)
downloadplan9port-564d45b5a55adeb48f69fdecb2bf4ed1f909850b.tar.gz
plan9port-564d45b5a55adeb48f69fdecb2bf4ed1f909850b.zip
config: add $egrep
Introduce a new variable set in $PLAN9/config: $egrep, which is conditionally set to either `egrep` or `grep -E`, based on platform, and use this when we want to invoke `egrep`. This works around the endless warnings from GNU grep stating that `egrep` is deprecated in favor of `grep -E`, when run on e.g. Linux.
Diffstat (limited to 'src/mkfile')
-rw-r--r--src/mkfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mkfile b/src/mkfile
index d17ca6b6..c18109fe 100644
--- a/src/mkfile
+++ b/src/mkfile
@@ -1,7 +1,7 @@
<mkhdr
BUGGERED='fs|fmt|utf'
-LIBDIRS=`ls -ld lib* | sed -n 's/^d.* //p' |egrep -v "^lib($BUGGERED)$"`
+LIBDIRS=`ls -ld lib* | sed -n 's/^d.* //p' |$egrep -v "^lib($BUGGERED)$"`
DIRS=\
$LIBDIRS\