comparison libgo/mksigtab.sh @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
27 27
28 addsig() { 28 addsig() {
29 echo " $1: $2," 29 echo " $1: $2,"
30 # Get the signal number and add it to SIGLIST 30 # Get the signal number and add it to SIGLIST
31 signum=`grep "const $1 = " gen-sysinfo.go | sed -e 's/.* = //'` 31 signum=`grep "const $1 = " gen-sysinfo.go | sed -e 's/.* = //'`
32 if echo "$signum" | grep -q '^_SIG[A-Z0-9_]*$'; then 32 if echo "$signum" | grep '^_SIG[A-Z0-9_]*$' >/dev/null 2>&1; then
33 # Recurse once to obtain signal number 33 # Recurse once to obtain signal number
34 # This is needed for some MIPS signals defined as aliases of other signals 34 # This is needed for some MIPS signals defined as aliases of other signals
35 signum=`grep "const $signum = " gen-sysinfo.go | sed -e 's/.* = //'` 35 signum=`grep "const $signum = " gen-sysinfo.go | sed -e 's/.* = //'`
36 fi 36 fi
37 SIGLIST=$SIGLIST"_${signum}_" 37 SIGLIST=$SIGLIST"_${signum}_"