2018-02-16 13:51:30 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# When updating TOMLV_COMMIT, consider updating github.com/BurntSushi/toml
|
|
|
|
# in vendor.conf accordingly
|
2018-11-08 13:42:57 -05:00
|
|
|
TOMLV_COMMIT=3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005 # v0.3.1
|
2018-02-16 13:51:30 -05:00
|
|
|
|
|
|
|
install_tomlv() {
|
|
|
|
echo "Install tomlv version $TOMLV_COMMIT"
|
|
|
|
git clone https://github.com/BurntSushi/toml.git "$GOPATH/src/github.com/BurntSushi/toml"
|
|
|
|
cd "$GOPATH/src/github.com/BurntSushi/toml" && git checkout -q "$TOMLV_COMMIT"
|
2018-12-22 14:18:33 -05:00
|
|
|
go build -v -buildmode=pie -o "${PREFIX}/tomlv" "github.com/BurntSushi/toml/cmd/tomlv"
|
2018-02-16 13:51:30 -05:00
|
|
|
}
|