From f649efa110a404d63180b36b5df7b23096a36081 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 Feb 2019 15:05:36 -0500 Subject: [PATCH] Add script to build .deb Easier support for debian and ubuntu. --- confluent_client/builddeb | 1 + confluent_server/builddeb | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 120000 confluent_client/builddeb create mode 100755 confluent_server/builddeb diff --git a/confluent_client/builddeb b/confluent_client/builddeb new file mode 120000 index 00000000..b7839d84 --- /dev/null +++ b/confluent_client/builddeb @@ -0,0 +1 @@ +../confluent_server/builddeb \ No newline at end of file diff --git a/confluent_server/builddeb b/confluent_server/builddeb new file mode 100755 index 00000000..d89dca5b --- /dev/null +++ b/confluent_server/builddeb @@ -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