2# build binary distributions for linux/amd64 and darwin/amd64
5DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9export GOPATH=$DIR/.godeps:$GOPATH
10GOPATH=$DIR/.godeps gpm install
14version=$(cat $DIR/version.go | grep "const VERSION" | awk '{print $NF}' | sed 's/"//g')
15goversion=$(go version | awk '{print $3}')
17echo "... running tests"
20for os in windows linux darwin; do
21 echo "... building v$version for $os/$arch"
23 if [ $os = windows ]; then
26 BUILD=$(mktemp -d ${TMPDIR:-/tmp}/oauth2_proxy.XXXXXX)
27 TARGET="oauth2_proxy-$version.$os-$arch.$goversion"
28 GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy$EXT || exit 1
30 tar czvf $TARGET.tar.gz $TARGET
31 mv $TARGET.tar.gz $DIR/dist
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list