fix #49. fix the git sha replacement.

pull/57/head
John Shahid 2013-11-13 11:23:57 -05:00
parent e665aac606
commit d1c72f42f0
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ function build_packages {
function setup_version {
echo "Changing version from dev to $influxdb_version"
sha1=`git rev-list --max-count=1 HEAD`
sed -i.bak -e "s/version = \"dev\"/version = \"$influxdb_version\"/" -e "s/gitSha = \"\"/gitSha = \"$sha1\"/" src/server/server.go
sed -i.bak -e "s/version = \"dev\"/version = \"$influxdb_version\"/" -e "s/gitSha\s*=\s*\"HEAD\"/gitSha = \"$sha1\"/" src/server/server.go
sed -i.bak -e "s/REPLACE_VERSION/$influxdb_version/" scripts/post_install.sh
}