diff options
| author | Dan Cross <cross@gajendra.net> | 2025-07-22 14:42:03 +0000 |
|---|---|---|
| committer | Dan Cross <cross@gajendra.net> | 2025-07-23 19:44:54 +0000 |
| commit | 564d45b5a55adeb48f69fdecb2bf4ed1f909850b (patch) | |
| tree | c1aefa9b2ff41e1d49a5cdba1d2a098e300cc76f /src/cmd/mkfile | |
| parent | 28690cd427d3caacc50f3df6a3ee901eba5c5dd0 (diff) | |
| download | plan9port-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/cmd/mkfile')
| -rw-r--r-- | src/cmd/mkfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/mkfile b/src/cmd/mkfile index 2d0c657e..ac98725a 100644 --- a/src/cmd/mkfile +++ b/src/cmd/mkfile @@ -1,11 +1,11 @@ <$PLAN9/src/mkhdr -TARG=`ls *.[cy] *.lx | egrep -v "\.tab\.c$|^x\." | sed 's/\.[cy]//; s/\.lx//'` +TARG=`ls *.[cy] *.lx | $egrep -v "\.tab\.c$|^x\." | sed 's/\.[cy]//; s/\.lx//'` <$PLAN9/src/mkmany BUGGERED='CVS|faces|factotum|lp|ip|mailfs|upas|vncv|mnihongo|mpm|index|u9fs|secstore|smugfs|snarfer' -DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'` $FONTSRV +DIRS=lex `ls -l |sed -n 's/^d.* //p' |$egrep -v "^($BUGGERED)$"|grep -v '^lex$'` $FONTSRV <$PLAN9/src/mkdirs |
