[stgt] [PATCH] Trim the letter v from the version tag for the rpm spec

Roi Dayan roid at mellanox.com
Mon Mar 11 14:38:11 CET 2013


The rpm package should not have the v for version in the version tag.

Signed-off-by: Roi Dayan <roid at mellanox.com>
---
 scripts/build-rpm.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/build-rpm.sh b/scripts/build-rpm.sh
index 8a00176..36ef364 100755
--- a/scripts/build-rpm.sh
+++ b/scripts/build-rpm.sh
@@ -13,7 +13,7 @@ LOG=/tmp/`basename $0`-$$.log
 # get branch name
 branch=`git branch | grep '^*' | sed 's/^..\(.*\)/\1/'`
 # get version tag
-version=`git describe --tags --abbrev=0`
+version=`git describe --tags --abbrev=0 | sed "s/^v//g"`
 # release is number of commits since the version tag
 release=`git describe --tags | cut -d- -f2 | tr - _`
 
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list