more idiomatic go build time variable setting

avoiding the use of 'sed'
This commit is contained in:
Matthias Radestock committed 2014-12-29 13:27:35 +00:00
1 parent 7c8586b576
commit d31a4ea331
2 files changed
+3 -4

No files matched your search

+1 -3
View File
@@ -47,11 +47,9 @@ build() {
## Inject the version numbers and build the distributables
## (library versions?)
sed -i "/var version = / c\var version = \"$VERSION\"" weaver/main.go
sed -i "/var version = / c\var version = \"$VERSION\"" weavedns/main.go
sed -i "/SCRIPT_VERSION=/ c\SCRIPT_VERSION=\"$VERSION\"" ./weave
make \
WEAVE_VERSION=$VERSION \
WEAVER_IMAGE=$DOCKERHUB_USER/weave \
WEAVEDNS_IMAGE=$DOCKERHUB_USER/weavedns