Skip to content

Commit e116604

Browse files
committed
unix: fix grep syntax to work on non-GNU greps
1 parent d58f986 commit e116604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unix/mkerrors.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ errors=$(
656656
signals=$(
657657
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
658658
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
659-
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
659+
grep -E -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
660660
sort
661661
)
662662

@@ -666,7 +666,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
666666
sort >_error.grep
667667
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
668668
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
669-
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
669+
grep -E -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
670670
sort >_signal.grep
671671

672672
echo '// mkerrors.sh' "$@"

0 commit comments

Comments
 (0)