this enables us to prepare release tarball for versions without
autotools support, where we use make-dist to create the release tarball
instead.
- make-dist only produces .bz2 tarball, so we switch to .bz2 in this
change.
- it's a waste to create both .gz and .bz2 tarballs using "make dist*",
as we only use one of the to repackage the .gz and .bz2 tarballs.
so let's drop "make dist" and use "make dist-bzip2" only.
Signed-off-by: Kefu Chai <kchai@redhat.com>
echo building tarball
rm ceph-*.tar.gz || true
rm ceph-*.tar.bz2 || true
- make dist
- make dist-bzip2
- vers=`ls ceph-*.tar.gz | cut -c 6- | sed 's/.tar.gz//'`
+ if [ -x make-dist ]; then
+ ./make-dist
+ else
+ make dist-bzip2
+ fi
+
+ vers=`ls ceph-*.tar.bz2 | cut -c 6- | sed 's/.tar.bz2//'`
echo tarball vers $vers
echo extracting
cp rpm/*.patch $releasedir/$cephver/rpm || true
cd $releasedir/$cephver
- tar zxf $srcdir/ceph-$vers.tar.gz
+ tar jxf $srcdir/ceph-$vers.tar.bz2
[ "$vers" != "$cephver" ] && mv ceph-$vers ceph-$cephver
tar zcf ceph_$cephver.orig.tar.gz ceph-$cephver