blob: dacb8fd92ae231ec0580a510adf4f419c5e6e667 [file] [log] [blame]
#!/bin/sh -ex
# Copyright 2022 Go Authors All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
GO_VERSION=1.13.3
echo "Meant to be run on a system on which Go has official releases and is installed"
GOHOSTARCH=$(go env GOHOSTARCH)
GOHOSTOS=$(go env GOHOSTOS)
export GOOS=linux
export GOARCH=ppc64
targz=go${GO_VERSION}.${GOHOSTOS}-${GOHOSTARCH}.tar.gz
wget https://dl.google.com/go/${targz}
tar xf ${targz}
( cd go/src; ./bootstrap.bash )
bootstrap=go-$GOOS-$GOARCH-bootstrap
rm -f ${bootstrap}.tbz # does not contain all that's needed
tar czf ${bootstrap}.tgz ${bootstrap}
sha256sum $bootstrap.tgz | tee $bootstrap.tgz.sha256