Skip to content

Commit 1eee614

Browse files
committed
use grep
Change-Id: I94e912c90f2f0e3c4eee5b8f3d1a67d3a58ee066
1 parent 9f5c279 commit 1eee614

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plan9/mkerrors.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ errors=$(
126126
signals=$(
127127
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
128128
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
129-
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT' |
129+
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT' |
130130
sort
131131
)
132132

@@ -136,7 +136,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
136136
sort >_error.grep
137137
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
138138
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
139-
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT' |
139+
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT' |
140140
sort >_signal.grep
141141

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

unix/mkerrors.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ errors=$(
642642
signals=$(
643643
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
644644
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
645-
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64' |
645+
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
646646
sort
647647
)
648648

@@ -652,7 +652,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
652652
sort >_error.grep
653653
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
654654
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
655-
grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64' |
655+
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
656656
sort >_signal.grep
657657

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

0 commit comments

Comments
 (0)