re PR go/67695 (Please improve POSIX shell compatibility of libgo/mksysinfo.sh)

PR go/67695
    mksysinfo.sh: Use = with test rather than ==.
    
    Fixes GCC PR 67695.

    Reviewed-on: https://go-review.googlesource.com/14858

From-SVN: r228064
This commit is contained in:
Ian Lance Taylor 2015-09-23 20:43:46 +00:00
parent 99474f812e
commit 9f59bddfbf
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
2087b95180caea3477647c449772b7fecc01a71c 90ebe729992443dc00b19c76b28d1270e17245a4
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.

View File

@ -531,7 +531,7 @@ upcase_fields () {
# GNU/Linux specific; it should do no harm if there is no # GNU/Linux specific; it should do no harm if there is no
# _user_regs_struct. # _user_regs_struct.
regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go || true` regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go || true`
if test "$regs" == ""; then if test "$regs" = ""; then
# s390 # s390
regs=`grep '^type __user_regs_struct struct' gen-sysinfo.go || true` regs=`grep '^type __user_regs_struct struct' gen-sysinfo.go || true`
if test "$regs" != ""; then if test "$regs" != ""; then