summaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorJoao Eduardo Luis <joao@clyso.com>2024-07-21 10:15:11 +0200
committerJoao Eduardo Luis <joao@clyso.com>2024-07-21 10:15:11 +0200
commit14318e4210a93edef7c45faf60dfc2f6a0741db5 (patch)
tree8c14b883864b45dd6f11d22c4f03ea92048243f9 /make-dist
parentMerge pull request #58688 from idryomov/wip-67051 (diff)
downloadceph-14318e4210a93edef7c45faf60dfc2f6a0741db5.tar.xz
ceph-14318e4210a93edef7c45faf60dfc2f6a0741db5.zip
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>
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist2
1 files changed, 1 insertions, 1 deletions
diff --git a/make-dist b/make-dist
index e874436a5e7..033bedebd87 100755
--- a/make-dist
+++ b/make-dist
@@ -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