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
733 B
Bash
Executable File
24 lines
733 B
Bash
Executable File
#!/bin/bash
|
|
export DEBFULLNAME="Lenovo HPC"
|
|
export DEBEMAIL="hpchelp@lenovo.com"
|
|
cd `dirname $0`
|
|
PKGNAME=$(basename $(pwd))
|
|
DPKGNAME=$(basename $(pwd) | sed -e s/_/-/)
|
|
OPKGNAME=$(basename $(pwd) | sed -e s/_/-/)
|
|
DSCARGS="--with-python3=True --with-python2=False"
|
|
VERSION=`../mkversion --tilde` || exit 1
|
|
cd ..
|
|
rm -rf /tmp/confluent
|
|
mkdir -p /tmp/confluent # $DPKGNAME
|
|
cp -a * .git /tmp/confluent # $DPKGNAME
|
|
cd /tmp/confluent
|
|
mv $PKGNAME $DPKGNAME-${VERSION}
|
|
sed -i s/%%VERSION%%/$VERSION/ $DPKGNAME-${VERSION}/debian/changelog
|
|
tar cvzf ${DPKGNAME}_${VERSION}.orig.tar.gz $DPKGNAME-${VERSION}
|
|
cd $DPKGNAME-${VERSION}
|
|
debuild --no-lintian -us -uc
|
|
if [ ! -z "$1" ]; then
|
|
mv /tmp/confluent/${DPKGNAME}_${VERSION}*.deb $1/
|
|
fi
|
|
exit 0
|