bootstrap.sh 743 B

12345678910111213141516171819202122232425
  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 -f -u bldy.build/bldy
  5. GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get harvey/cmd/...
  6. # this will make booting a VM easier
  7. mkdir -p tmp
  8. cat <<EOF
  9. # We support RISC-V, but the default is x86_64 (which we call amd64 for historical reasons):
  10. export ARCH=amd64
  11. # And build:
  12. ./util/build
  13. # See \`build -h' for more information on the build tool.
  14. To enable access to files, create a harvey and none user:
  15. sudo useradd harvey
  16. sudo useradd none
  17. none is only required for drawterm/cpu access
  18. EOF