mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
make-dist: replace all '-' for '.' for rpm release
Otherwise, a version like 'vX.Y.Z-foo-bar-baz' would end up as an rpm release of 'foo.bar-baz' in the spec file, and rpm will not like that very much because of that extra '-'. Signed-off-by: Joao Eduardo Luis <joao@clyso.com>
This commit is contained in:
parent
e2b4fe6be7
commit
14318e4210
@ -23,7 +23,7 @@ version=$1
|
||||
[ -z "$version" ] && version=$(git describe --long --match 'v*' | sed 's/^v//')
|
||||
if expr index $version '-' > /dev/null; then
|
||||
rpm_version=$(echo $version | cut -d - -f 1-1)
|
||||
rpm_release=$(echo $version | cut -d - -f 2- | sed 's/-/./')
|
||||
rpm_release=$(echo $version | cut -d - -f 2- | sed 's/-/./g')
|
||||
else
|
||||
rpm_version=$version
|
||||
rpm_release=0
|
||||
|
Loading…
Reference in New Issue
Block a user