2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-21 17:11:58 +00:00

Add script to build .deb

Easier support for debian and ubuntu.
This commit is contained in:
Jarrod Johnson 2019-02-04 15:05:36 -05:00
parent 521013e50a
commit f649efa110
2 changed files with 23 additions and 0 deletions

1
confluent_client/builddeb Symbolic link
View File

@ -0,0 +1 @@
../confluent_server/builddeb

22
confluent_server/builddeb Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
cd `dirname $0`
if [ -x ./makeman ]; then
./makeman
fi
./makesetup
VERSION=`cat VERSION`
PKGNAME=$(basename $(pwd))
touch setup.cfg
python setup.py sdist > /dev/null 2>&1
py2dsc dist/*.tar.gz
shopt -s extglob
cd deb_dist/!(*.orig)/
dpkg-buildpackage -rfakeroot -uc -us -i
if [ $? -ne 0 ]; then
echo "[ERROR] rpmbuild returned non-zero, run: rpmbuild -ba ~/rpmbuild/SPECS/$PKGNAME.spec"
exit 1
else
# Clean up the generated files in this directory
rm -rf $PKGNAME.egg-info dist setup.py
fi
exit 0