bootstrap.sh 604 B

123456789101112131415161718
  1. #!/bin/bash
  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. # this will make booting a VM easier
  8. mkdir -p tmp
  9. cat <<EOF
  10. # We support RISC-V, but the default is x86_64 (which we call amd64 for historical reasons):
  11. export ARCH=amd64
  12. # And build:
  13. ./util/build
  14. # See \`build -h' for more information on the build tool.
  15. EOF