build_tools/make_version: Strip off the leading 'v' in the version string.
Quote: "It's a change. People hate change" Make the version string say something like 2.6.2 instead of v2.6.2. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
parent
d5e5b19a02
commit
9b0d19c054
@ -59,7 +59,7 @@ elif [ -d ${1}/.git ]; then
|
|||||||
MODIFIED=""
|
MODIFIED=""
|
||||||
SVN_REV=`git log --pretty=full -1 | grep -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"`
|
SVN_REV=`git log --pretty=full -1 | grep -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"`
|
||||||
if [ -z "$SVN_REV" ]; then
|
if [ -z "$SVN_REV" ]; then
|
||||||
VERSION=`git describe --tags --dirty=M 2> /dev/null`
|
VERSION=`git describe --tags --dirty=M 2> /dev/null | sed -e "s/^v//"`
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
if [ "`git ls-files -m | wc -l`" != "0" ]; then
|
if [ "`git ls-files -m | wc -l`" != "0" ]; then
|
||||||
MODIFIED="M"
|
MODIFIED="M"
|
||||||
|
Loading…
Reference in New Issue
Block a user