Created
November 18, 2016 18:47
-
-
Save eden/eab59a746de3bf05e70c10dc7dec5765 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "init" ]; then | |
brew install opam golang | |
opam init | |
eval `opam config env` | |
opam pin add qcow-format git://github.com/mirage/ocaml-qcow#master | |
opam install uri qcow-format | |
go get -u github.com/jteeuwen/go-bindata/... | |
git submodule init | |
git submodule update | |
go get | |
else | |
eval `opam config env` | |
git submodule foreach git pull origin master | |
opam update | |
opam upgrade | |
fi | |
go generate | |
go build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment