From c8579e57cb1f1c32a99dd57314c5ced1a457dde3 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Thu, 25 Feb 2016 00:52:16 -0500 Subject: [PATCH] build: use go tool dist list Change-Id: I9b79bd301d0b75ca1f16d4a05e3cb687a8428c14 Reviewed-on: https://go-review.googlesource.com/19884 Run-TryBot: Minux Ma TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/buildall.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buildall.bash b/src/buildall.bash index f686dd8996..a322fe537a 100755 --- a/src/buildall.bash +++ b/src/buildall.bash @@ -32,13 +32,13 @@ if [ "$pattern" = "" ]; then pattern=. fi -# put linux, nacl first in the target list to get all the architectures up front. -targets="$((ls runtime | sed -n 's/^rt0_\(.*\)_\(.*\)\.s/\1-\2/p'; echo linux-386-387 linux-arm-arm5) | sort | sed -e 's|linux-mips64x|linux-mips64 linux-mips64le|' | egrep -v android-arm | egrep "$pattern" | egrep 'linux|nacl') -$(ls runtime | sed -n 's/^rt0_\(.*\)_\(.*\)\.s/\1-\2/p' | egrep -v 'android-arm|darwin-arm' | egrep "$pattern" | egrep -v 'linux|nacl')" - ./make.bash || exit 1 GOROOT="$(cd .. && pwd)" +# put linux, nacl first in the target list to get all the architectures up front. +targets="$((../bin/go tool dist list | sed -n 's/^\(.*\)\/\(.*\)/\1-\2/p'; echo linux-386-387 linux-arm-arm5) | sort | egrep -v android-arm | egrep "$pattern" | egrep 'linux|nacl') +$(../bin/go tool dist list | sed -n 's/^\(.*\)\/\(.*\)/\1-\2/p' | egrep -v 'android-arm|darwin-arm' | egrep "$pattern" | egrep -v 'linux|nacl')" + failed=false for target in $targets do -- 2.48.1