1
0

bootstrap.sh 749 B

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