Skip to content

Commit

Permalink
libgo: don't use wc in gotest
Browse files Browse the repository at this point in the history
    
    The wc command is not in the GNU approved list of Makefile utilities
    (https://www.gnu.org/prep/standards/html_node/Utilities-in-Makefiles.html#Utilities-in-Makefiles).
    
    Reviewed-on: https://go-review.googlesource.com/c/144897


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265515 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ian committed Oct 26, 2018
1 parent ef029ad commit 904510f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gcc/go/gofrontend/MERGE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
407a59831ea4fbfe03f0887c40497b73939e7c44
0a58bd7d820dac8931e8da5b291f19c3c7e6bee3

The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
5 changes: 2 additions & 3 deletions libgo/testsuite/gotest
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,9 @@ symtogo() {
local ndots=""
for tp in $*
do
s=$(echo $tp | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')
s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')
# screen out methods (X.Y.Z)
ndots=$(echo $s | sed -e 's/\./ /g' | wc -w)
if [ $ndots -ne 2 ]; then
if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then
continue
fi
if [ -z "${result}" ]; then
Expand Down

0 comments on commit 904510f

Please sign in to comment.