Skip to content

Instantly share code, notes, and snippets.

@eden
Created November 18, 2016 18:47
Show Gist options
  • Save eden/eab59a746de3bf05e70c10dc7dec5765 to your computer and use it in GitHub Desktop.
Save eden/eab59a746de3bf05e70c10dc7dec5765 to your computer and use it in GitHub Desktop.
#!/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