Permalink
Browse files

updates to dist.sh; bump binary version to 0.2.14

  • Loading branch information...
1 parent 129ad21 commit 4d1f5a647b8ddabe0945a9f229e4d9f1669cfbec @mreiferson mreiferson committed Oct 19, 2012
Showing with 27 additions and 11 deletions.
  1. +4 −0 ChangeLog.md
  2. +2 −2 Makefile
  3. +20 −8 dist.sh
  4. +1 −1 util/binary_version.go
View
@@ -2,6 +2,10 @@
## NSQ Binaries
+* 0.2.14 - 2012-10-19
+ * #77 ability to pause a channel (includes bugfix for message pump/diskqueue)
+ * #74 propagate all topic changes to lookupd
+ * #65 create binary releases
* 0.2.13 - 2012-10-15
* #70 deadlined nsq_to_http outbound requests
* #69/#72 improved nsq_to_file sync strategy
View
@@ -1,5 +1,5 @@
-PREFIX?=/usr/local
-DESTDIR?=
+PREFIX=/usr/local
+DESTDIR=
BINDIR=${PREFIX}/bin
DATADIR=${PREFIX}/share
View
28 dist.sh
@@ -5,18 +5,30 @@
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd $DIR
-mkdir -p dist
+os=$(go env GOOS)
arch=$(go env GOARCH)
+version=$(cat util/binary_version.go | tail -n1 | awk '{print $NF}' | sed 's/"//g')
+
+TMPGOPATH=$(mktemp -d -t nsqgopath)
+mkdir -p $TMPGOPATH/src
+mkdir -p $TMPGOPATH/pkg/${os}_${arch}
+export GOPATH="$TMPGOPATH:$GOROOT"
+
+echo "... getting dependencies"
+go get -v github.com/bitly/go-simplejson
+go get -v github.com/bitly/go-notify
+go get -v github.com/bmizerany/assert
-version=`cat util/binary_version.go | tail -n1 | awk '{print $NF}' | sed 's/"//g'`
-echo "building version $version"
+echo "... running tests"
+./test.sh || exit 1
+
+mkdir -p dist
for os in linux darwin; do
+ echo "... building v$version for $os/$arch"
BUILD=$(mktemp -d -t nsq)
- TARGET=nsq-$version.$os-$arch
- mkdir -p $TARGET
- export GOOS=$os GOARCH=$arch CGO_ENABLED=0
- make || exit 1
- DESTDIR=$BUILD/$TARGET PREFIX= make install
+ TARGET="nsq-$version.$os-$arch"
+ GOOS=$os GOARCH=$arch CGO_ENABLED=0 make || exit 1
+ make DESTDIR=$BUILD/$TARGET PREFIX= install
pushd $BUILD
tar czvf $TARGET.tar.gz $TARGET
mv $TARGET.tar.gz $DIR/dist
View
@@ -1,3 +1,3 @@
package util
-const BINARY_VERSION = "0.2.13"
+const BINARY_VERSION = "0.2.14"

0 comments on commit 4d1f5a6

Please sign in to comment.