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 /bin/9c | |
| 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 'bin/9c')
| -rwxr-xr-x | bin/9c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,6 +8,7 @@ usegcc() -O2 \ -c \ -Wall \ + -Wno-array-parameter \ -Wno-parentheses \ -Wno-missing-braces \ -Wno-switch \ @@ -23,7 +24,7 @@ usegcc() -fno-omit-frame-pointer \ -fsigned-char \ -fcommon \ - -std=c11 \ + -std=gnu11 \ " # want to put -fno-optimize-sibling-calls here but # that option only works with gcc3+ it seems @@ -56,7 +57,7 @@ quiet() ignore=$ignore'|expanded from macro' grep -v '__p9l_autolib_' "$1" | - egrep -v "$ignore" | + $egrep -v "$ignore" | sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' | $(which uniq) 1>&2 # avoid built-in uniq on SunOS } |
