1#!/bin/sh 2 3set -e -x 4 5export GOPATH=$PWD/gopath 6export PATH=$PWD/bin:$PATH 7 8export DISTDIR=$PWD/release 9 10date +"%Y-%m-%d" > $DISTDIR/release-name 11 12cd $GOPATH/src/github.com/vito/houdini 13 14mkdir -p $DISTDIR/artifacts 15 16export GOPATH=$PWD/deps:$GOPATH 17 18GOOS=darwin GOARCH=amd64 \ 19 go build -o $DISTDIR/artifacts/houdini_darwin_amd64 ./cmd/houdini 20 21GOOS=windows GOARCH=amd64 \ 22 go build -o $DISTDIR/artifacts/houdini_windows_amd64.exe ./cmd/houdini 23 24GOOS=windows GOARCH=386 \ 25 go build -o $DISTDIR/artifacts/houdini_windows_386.exe ./cmd/houdini 26 27GOOS=linux GOARCH=amd64 \ 28 go build -o $DISTDIR/artifacts/houdini_linux_amd64 ./cmd/houdini 29 30GOOS=linux GOARCH=386 \ 31 go build -o $DISTDIR/artifacts/houdini_linux_386 ./cmd/houdini 32