shithub: 9scripts

ref: 90fc5b6d063ec3e0923d59588bc2ad0eccd2adf4
dir: /install/install-go.rc/

View raw version
#! /bin/rc
cd /tmp
hget http://www.9legacy.org/download/go/go1.14.1-plan9-amd64-bootstrap.tbz | bunzip2 -c | tar x
mkdir -p /sys/lib/go
cd /sys/lib/go/
hget https://golang.org/dl/go1.15.2.src.tar.gz | gunzip -c | tar x
cd /sys/lib/go/go/src
GOROOT_BOOTSTRAP=/tmp/go-plan9-amd64-bootstrap
GOROOT=/sys/lib/go/go

make.rc
cp /sys/lib/go/go/bin/* /$objtype/bin