bootstrap.sh 964 B

1234567891011121314151617181920212223242526272829
  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 get github.com/Harvey-OS/ninep/cmd/ufs harvey/cmd/...
  7. GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go install github.com/Harvey-OS/ninep/cmd/ufs harvey/cmd/...
  8. echo Downloading the blaze tool...
  9. curl -L http://sevki.co/get-build -o util/blaze
  10. chmod +x util/blaze
  11. # this will make booting a VM easier
  12. mkdir -p tmp
  13. cat <<EOF
  14. # We support RISC-V, but the default is x86_64 (which we call amd64 for historical reasons):
  15. export ARCH=amd64
  16. # And build:
  17. ./util/build
  18. # See \`build -h' for more information on the build tool.
  19. To enable access to files, create a harvey and none user:
  20. sudo useradd harvey
  21. sudo useradd none
  22. none is only required for drawterm/cpu access
  23. EOF