diff --git a/VERSION b/VERSION index 17e51c3..0ea3a94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.1 +0.2.0 diff --git a/scripts/build.sh b/scripts/build.sh index 683c8e6..0799b7a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -4,7 +4,11 @@ GO=${GO:=$(which go)} -source ./scripts/shell_helpers/get_git_data.sh +if [ -d .git ]; then + source ./scripts/shell_helpers/get_git_data.sh +else + source ./scripts/shell_helpers/get_release_data.sh +fi WHATTOBUILD=$1 @@ -18,4 +22,4 @@ LINKERFLAGS="\ echo "Using $(go version) at ${GO}" cd cmd/${WHATTOBUILD} -go build -tags netgo -ldflags "${LINKERFLAGS} -w -extldflags '-static'" -o ../../._bin/${WHATTOBUILD} +${GO} build -tags netgo -ldflags "${LINKERFLAGS} -w -extldflags '-static'" -o ../../._bin/${WHATTOBUILD}