Hide build version behind plus character (fixes #473)

This commit is contained in:
Jakob Borg
2014-08-05 19:38:31 +02:00
parent 8ce8476547
commit 4be6a54bc0
4 changed files with 10 additions and 2 deletions

View File

@@ -4,7 +4,11 @@ export COPYFILE_DISABLE=true
export GO386=387 # Don't use SSE on 32 bit builds
distFiles=(README.md LICENSE CONTRIBUTORS) # apart from the binary itself
# replace "...-12-g123abc" with "...+12-g123abc" to remain semver compatible-ish
version=$(git describe --always --dirty)
version=$(echo "$version" | sed 's/-\([0-9]\{1,3\}-g[0-9a-f]\{5,10\}\)/+\1/')
date=$(git show -s --format=%ct)
user=$(whoami)
host=$(hostname)