diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-11-22 00:27:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-11-22 00:27:29 +0000 |
commit | ce143aa6e3d1d8dee4dad9cfd71774c5c3b9511b (patch) | |
tree | 9dd3c38fa35fd470b15591bc2508404a42cfd515 /libgo | |
parent | 2ee325a52237c0aa61b0aa3768bcd2364a407959 (diff) | |
download | gcc-ce143aa6e3d1d8dee4dad9cfd71774c5c3b9511b.zip gcc-ce143aa6e3d1d8dee4dad9cfd71774c5c3b9511b.tar.gz gcc-ce143aa6e3d1d8dee4dad9cfd71774c5c3b9511b.tar.bz2 |
libgo: don't use grep -q in mksigtab.sh
Solaris grep does not support the -q option.
Reviewed-on: https://go-review.googlesource.com/79239
From-SVN: r255042
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/mksigtab.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/mksigtab.sh b/libgo/mksigtab.sh index 2b07dd4..c68b28b 100644 --- a/libgo/mksigtab.sh +++ b/libgo/mksigtab.sh @@ -29,7 +29,7 @@ addsig() { echo " $1: $2," # Get the signal number and add it to SIGLIST signum=`grep "const $1 = " gen-sysinfo.go | sed -e 's/.* = //'` - if echo "$signum" | grep -q '^_SIG[A-Z0-9_]*$'; then + if echo "$signum" | grep '^_SIG[A-Z0-9_]*$' >/dev/null 2>&1; then # Recurse once to obtain signal number # This is needed for some MIPS signals defined as aliases of other signals signum=`grep "const $signum = " gen-sysinfo.go | sed -e 's/.* = //'` |