]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
make-dist: replace all '-' for '.' for rpm release 58701/head
authorJoao Eduardo Luis <joao@clyso.com>
Sun, 21 Jul 2024 08:15:11 +0000 (08:15 +0000)
committerJoao Eduardo Luis <joao@clyso.com>
Sun, 21 Jul 2024 08:15:11 +0000 (08:15 +0000)
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>
make-dist

index e874436a5e7072a59df9b6b2ec1b7165d3f01247..033bedebd87f09f50a82b1c63b357bd5ac51b41c 100755 (executable)
--- 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