Add release.sh and Vagrantfile

This commit is contained in:
Evan Phoenix
2015-04-07 09:31:28 -07:00
parent a0eada9c49
commit e494014c5d
3 changed files with 143 additions and 0 deletions

18
release.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
VERSION="0.9.b1"
echo "Building Tivan version $VERSION"
mkdir -p pkg
build() {
echo -n "=> $1-$2: "
GOOS=$1 GOARCH=$2 go build -o pkg/tivan-$1-$2 -ldflags "-X main.Version $VERSION" ./cmd/tivan/tivan.go
du -h pkg/tivan-$1-$2
}
build "darwin" "amd64"
build "linux" "amd64"
build "linux" "386"