build_reloc.sh: rename relocatable packages

Currently, we use following naming convention for relocatable package
filename:
  ${package_name}-${arch}-package-${version}.${release}.tar.gz
But this is very different with Linux standard packaging system such as
.rpm and .deb.
Let's align the convention to .rpm style, so new convention should be:
  ${package_name}-${version}-${release}.${arch}.tar.gz

See scylladb/scylla#9799

Closes #185
This commit is contained in:
Takuya ASADA 2022-06-27 11:25:14 +09:00 committed by Avi Kivity
parent fe351e8491
commit 06f27357b4

View File

@ -37,6 +37,7 @@ VERSION=$(./SCYLLA-VERSION-GEN ${VERSION_OVERRIDE:+ --version "$VERSION_OVERRIDE
# the former command should generate build/SCYLLA-PRODUCT-FILE and some other version # the former command should generate build/SCYLLA-PRODUCT-FILE and some other version
# related files # related files
PRODUCT=`cat build/SCYLLA-PRODUCT-FILE` PRODUCT=`cat build/SCYLLA-PRODUCT-FILE`
DEST="build/$PRODUCT-jmx-$VERSION.noarch.tar.gz"
is_redhat_variant() { is_redhat_variant() {
[ -f /etc/redhat-release ] [ -f /etc/redhat-release ]
@ -55,8 +56,8 @@ if [ "$CLEAN" = "yes" ]; then
rm -rf build target rm -rf build target
fi fi
if [ -f build/$PRODUCT-jmx-package.tar.gz ]; then if [ -f "$DEST" ]; then
rm build/$PRODUCT-jmx-package.tar.gz rm "$DEST"
fi fi
if [ -z "$NODEPS" ]; then if [ -z "$NODEPS" ]; then
@ -66,4 +67,4 @@ fi
mvn -B --file scylla-jmx-parent/pom.xml install mvn -B --file scylla-jmx-parent/pom.xml install
./SCYLLA-VERSION-GEN ${VERSION_OVERRIDE:+ --version "$VERSION_OVERRIDE"} ./SCYLLA-VERSION-GEN ${VERSION_OVERRIDE:+ --version "$VERSION_OVERRIDE"}
./dist/debian/debian_files_gen.py ./dist/debian/debian_files_gen.py
scripts/create-relocatable-package.py build/$PRODUCT-jmx-package.tar.gz scripts/create-relocatable-package.py "$DEST"