bootstrap.sh 850 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. git submodule init
  3. git submodule update
  4. echo Building the build tool...
  5. GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get -d harvey/cmd/... # should really vendor these bits
  6. GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go install github.com/rminnich/ninep/srv/examples/ufs harvey/cmd/...
  7. echo Downloading the blaze tool...
  8. curl -L http://sevki.co/get-build -o util/blaze
  9. chmod +x util/blaze
  10. # this will make booting a VM easier
  11. mkdir -p tmp
  12. cat <<EOF
  13. # We support RISC-V, but the default is x86_64 (which we call amd64 for historical reasons):
  14. export ARCH=amd64
  15. # And build:
  16. ./util/build
  17. # See \`build -h' for more information on the build tool.
  18. To enable access to files, create a harvey and none user:
  19. sudo useradd harvey
  20. sudo useradd none
  21. none is only required for drawterm/cpu access
  22. EOF