]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
make-debs.sh: Optionally avoid make-dist
authorZack Cerza <zack@cerza.org>
Wed, 5 Mar 2025 21:40:55 +0000 (14:40 -0700)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 1 Aug 2025 12:47:18 +0000 (08:47 -0400)
Signed-off-by: Zack Cerza <zack@cerza.org>
(cherry picked from commit 6455b99f3228db0f4d742b1cd0cce3586af00cec)

make-debs.sh

index 6857b2117363bb87e9f62145165f4caf95f6aca9..99180f6fd596960f0ffb5ca3c9542df78c06effa 100755 (executable)
@@ -23,17 +23,17 @@ rm -fr $(dirname $releasedir)
 #
 # remove all files not under git so they are not
 # included in the distribution.
-#
-git clean -dxf
-#
+
+[ -e .git ] && git clean -dxf
+
 # git describe provides a version that is
 # a) human readable
 # b) is unique for each commit
 # c) compares higher than any previous commit
 # d) contains the short hash of the commit
 #
-vers=$(git describe --match "v*" | sed s/^v//)
-./make-dist $vers
+vers=${2:-$(git describe --match "v*" | sed s/^v//)}
+test -f "ceph-$vers.tar.bz2" || ./make-dist $vers
 #
 # rename the tarbal to match debian conventions and extract it
 #