mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-03 16:07:00 +00:00
a9d7b67929
Release tags do not live on master: 3.15.2 through 3.15.6 were tagged on branch 3.15, so git describe reaches only 3.15.1 and dev builds were stamped 3.15.2.dev<n>. Besides being confusing, rpm and dpkg both rank the released 3.15.6 above that, so a dev package will not install over a released one. Add a top-level VERSION file naming the release the branch is working toward (4.0.0 on master) and a mkversion helper that stamps packages from it, keeping the tag-derived value as a floor so a forgotten bump cannot go backwards. mkversion also replaces the block copy-pasted into seven build scripts, and makesetup no longer writes a per-package VERSION file, so the stale checked-in confluent_common/VERSION goes with it.
24 lines
1.1 KiB
Bash
Executable File
24 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
export DEBFULLNAME="Lenovo HPC"
|
|
export DEBEMAIL="hpchelp@lenovo.com"
|
|
cd "$(dirname "$0")" || exit 1
|
|
VERSION=`../mkversion --tilde` || exit 1
|
|
mkdir -p /tmp/confluent-imgutil
|
|
cp -a * /tmp/confluent-imgutil
|
|
cp ../LICENSE /tmp/confluent-imgutil
|
|
cd /tmp/confluent-imgutil
|
|
rm -rf deb/confluent_imgutil_$VERSION/
|
|
mkdir -p deb/confluent_imgutil_$VERSION/DEBIAN/
|
|
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/lib/imgutil
|
|
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/bin
|
|
mv imgutil deb/confluent_imgutil_$VERSION/opt/confluent/bin/
|
|
chmod a+x deb/confluent_imgutil_$VERSION/opt/confluent/bin/imgutil
|
|
mv ubuntu* suse15 el7 el9 el8 deb/confluent_imgutil_$VERSION/opt/confluent/lib/imgutil/
|
|
mkdir -p deb/confluent_imgutil_$VERSION/opt/confluent/share/licenses/confluent_imgutil
|
|
cp LICENSE deb/confluent_imgutil_$VERSION/opt/confluent/share/licenses/confluent_imgutil
|
|
sed -e 's/#VERSION#/'$VERSION/ control.tmpl > deb/confluent_imgutil_$VERSION/DEBIAN/control
|
|
dpkg-deb --build deb/confluent_imgutil_$VERSION
|
|
if [ ! -z "$1" ]; then
|
|
mv deb/confluent_imgutil_$VERSION.deb $1
|
|
fi
|