]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build: small script tweak to allow different build dirs
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 14 Sep 2024 10:31:23 +0000 (06:31 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 18 Feb 2025 22:58:08 +0000 (17:58 -0500)
Move the mkdir line to allow for other builds dir naming schemes outside
of what appears in the .gitignore file. A tiny bit of added flexibility
at little cost.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 4578625ce067f7c270018612aad50adb5ac74b94)

make-debs.sh

index ed79df777e5d2ca6965222cb1bfe407598c97701..6857b2117363bb87e9f62145165f4caf95f6aca9 100755 (executable)
@@ -20,7 +20,6 @@ set -xe
 base=${1:-/tmp/release}
 releasedir=$base/$NAME/WORKDIR
 rm -fr $(dirname $releasedir)
-mkdir -p $releasedir
 #
 # remove all files not under git so they are not
 # included in the distribution.
@@ -38,6 +37,7 @@ vers=$(git describe --match "v*" | sed s/^v//)
 #
 # rename the tarbal to match debian conventions and extract it
 #
+mkdir -p $releasedir
 mv ceph-$vers.tar.bz2 $releasedir/ceph_$vers.orig.tar.bz2
 tar -C $releasedir -jxf $releasedir/ceph_$vers.orig.tar.bz2
 #