simplify egrep syntax

Change-Id: I1d9ccc8dd70051a962a2cc5195cb08148d5c3549
This commit is contained in:
kxxt
2022-10-01 08:07:51 +08:00
parent 637e5adc5e
commit 9f5c279168
2 changed files with 4 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ errors=$(
signals=$(
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT' |
sort
)
@@ -136,7 +136,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
sort >_error.grep
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT' |
sort >_signal.grep
echo '// mkerrors.sh' "$@"

View File

@@ -642,7 +642,7 @@ errors=$(
signals=$(
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64' |
sort
)
@@ -652,7 +652,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
sort >_error.grep
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64' |
sort >_signal.grep
echo '// mkerrors.sh' "$@"