ref: 7579e03fd2053482f1ff96e85032de3249c84760
parent: 9871fbbcec122c02b6f2a1fbe48d10344b997b27
author: Ralph Giles <giles@mozilla.com>
date: Wed Oct 24 11:04:39 EDT 2012
Update git-version for the vN.M release tagging scheme. We need the sed invocation to strip the 'v' prefix when naming the dist tarball.
--- a/doc/git-version.sh
+++ b/doc/git-version.sh
@@ -2,7 +2,8 @@
# script to build a version string
-GIT_VERSION=$(git describe --tags --dirty 2> /dev/null)
+GIT_VERSION=$(git describe --tags --match 'v*' --dirty 2> /dev/null)
+GIT_VERSION=$(echo ${GIT_VERSION} | sed 's/^v//')
if test -z ${GIT_VERSION}; then
VERSION='unknown'
else