aboutsummaryrefslogtreecommitdiff
path: root/src/buildall.bash
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-03-09 20:50:24 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2017-03-09 21:30:31 +0000
commit027500ce385709ecaa8fe11320a23a12f8e3b3de (patch)
treee44cd269418d1b2207e8b24491ad3228d391c0d9 /src/buildall.bash
parent945180fe2aa3238bbc23f336a00eba934daa9ccc (diff)
downloadgo-027500ce385709ecaa8fe11320a23a12f8e3b3de.tar.gz
go-027500ce385709ecaa8fe11320a23a12f8e3b3de.zip
src/*.bash: use tabs consistently
make.bash used mostly tabs and buildall.bash used mostly spaces, but they were both mixing them. Be consistent and use tabs, as that's what's more common and what the Go code uses. Change-Id: Ia6affbfccfe64fda800c1ac400965df364d2c545 Reviewed-on: https://go-review.googlesource.com/37967 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/buildall.bash')
-rwxr-xr-xsrc/buildall.bash64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/buildall.bash b/src/buildall.bash
index 57bee8d6a5..5820b4d589 100755
--- a/src/buildall.bash
+++ b/src/buildall.bash
@@ -19,39 +19,39 @@ fi
sete=false
if [ "$1" = "-e" ]; then
- sete=true
- shift
+ sete=true
+ shift
fi
if [ "$sete" = true ]; then
- set -e
+ set -e
fi
pattern="$1"
if [ "$pattern" = "" ]; then
- pattern=.
+ pattern=.
fi
./make.bash || exit 1
GOROOT="$(cd .. && pwd)"
gettargets() {
- ../bin/go tool dist list | sed -e 's|/|-|'
- echo linux-386-387
- echo linux-arm-arm5
+ ../bin/go tool dist list | sed -e 's|/|-|'
+ echo linux-386-387
+ echo linux-arm-arm5
}
selectedtargets() {
- gettargets | egrep -v 'android-arm|darwin-arm' | egrep "$pattern"
+ gettargets | egrep -v 'android-arm|darwin-arm' | egrep "$pattern"
}
# put linux, nacl first in the target list to get all the architectures up front.
linux_nacl_targets() {
- selectedtargets | egrep 'linux|nacl' | sort
+ selectedtargets | egrep 'linux|nacl' | sort
}
non_linux_nacl_targets() {
- selectedtargets | egrep -v 'linux|nacl' | sort
+ selectedtargets | egrep -v 'linux|nacl' | sort
}
# Note words in $targets are separated by both newlines and spaces.
@@ -60,29 +60,29 @@ targets="$(linux_nacl_targets) $(non_linux_nacl_targets)"
failed=false
for target in $targets
do
- echo ""
- echo "### Building $target"
- export GOOS=$(echo $target | sed 's/-.*//')
- export GOARCH=$(echo $target | sed 's/.*-//')
- unset GO386 GOARM
- if [ "$GOARCH" = "arm5" ]; then
- export GOARCH=arm
- export GOARM=5
- fi
- if [ "$GOARCH" = "387" ]; then
- export GOARCH=386
- export GO386=387
- fi
- if ! "$GOROOT/bin/go" build -a std cmd; then
- failed=true
- if $sete; then
- exit 1
- fi
- fi
+ echo ""
+ echo "### Building $target"
+ export GOOS=$(echo $target | sed 's/-.*//')
+ export GOARCH=$(echo $target | sed 's/.*-//')
+ unset GO386 GOARM
+ if [ "$GOARCH" = "arm5" ]; then
+ export GOARCH=arm
+ export GOARM=5
+ fi
+ if [ "$GOARCH" = "387" ]; then
+ export GOARCH=386
+ export GO386=387
+ fi
+ if ! "$GOROOT/bin/go" build -a std cmd; then
+ failed=true
+ if $sete; then
+ exit 1
+ fi
+ fi
done
if [ "$failed" = "true" ]; then
- echo "" 1>&2
- echo "Build(s) failed." 1>&2
- exit 1
+ echo "" 1>&2
+ echo "Build(s) failed." 1>&2
+ exit 1
fi