1
0

build-go.sh 360 B

12345678910111213
  1. #!/bin/sh
  2. # Fetches the Go source and compiles it for Plan 9
  3. cd ../sys/
  4. if [ ! -e go ]
  5. then
  6. git clone --depth 1 --branch go1.16.6 https://github.com/golang/go.git
  7. fi
  8. cd go/src
  9. GOROOT_FINAL=/sys/go GOOS=plan9 GOARCH=386 ./make.bash
  10. GOROOT_FINAL=/sys/go GOOS=plan9 GOARCH=amd64 ./make.bash
  11. rm -rf ../bin/linux_*
  12. rm -rf ../pkg/linux_*
  13. rm -rf ../pkg/tool/linux_*