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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Roi Dayan <roid@xxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux