Commit c404b3b9 by Ian Lance Taylor

libgo: don't use wc in gotest

    
    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

From-SVN: r265515
parent 03f7544f
407a59831ea4fbfe03f0887c40497b73939e7c44 0a58bd7d820dac8931e8da5b291f19c3c7e6bee3
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.
...@@ -518,10 +518,9 @@ symtogo() { ...@@ -518,10 +518,9 @@ symtogo() {
local ndots="" local ndots=""
for tp in $* for tp in $*
do 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) # screen out methods (X.Y.Z)
ndots=$(echo $s | sed -e 's/\./ /g' | wc -w) if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then
if [ $ndots -ne 2 ]; then
continue continue
fi fi
if [ -z "${result}" ]; then if [ -z "${result}" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment