Update release script to work with any version pattern

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2016-06-14 16:17:47 -07:00
parent 91ec013436
commit 4357f4ca3b
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ display "Bump version number to ${VERSION}"
# Why 'sed' and then 'mv' instead of 'sed -i'? BSD / GNU sed compatibility.
# Macs have BSD sed by default, Linux has GNU sed. See
# http://unix.stackexchange.com/questions/92895/how-to-achieve-portability-with-sed-i-in-place-editing
sed -e "s/Version = \".*-dev\"/Version = \"${VERSION}\"/g" version/version.go >version/version.go.new
sed -e "s/Version = \".*\"$/Version = \"${VERSION}\"/g" version/version.go >version/version.go.new
checkError "Unable to change version in version/version.go"
mv -- version/version.go.new version/version.go