From 7f936862d2ceb3eaedc97bd874380bad4617abf7 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Thu, 29 Dec 2016 18:33:56 +0900 Subject: [PATCH] dist/ubuntu: check existance of build tools It normally won't be problem because scylla-jmx usually build after scylla building. However some tools we required for build_deb.sh doesn't installed on minimal installation, so we should check and install it. Signed-off-by: Takuya ASADA Message-Id: <1483004036-2824-1-git-send-email-syuu@scylladb.com> --- dist/ubuntu/build_deb.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dist/ubuntu/build_deb.sh b/dist/ubuntu/build_deb.sh index 3052ce3..192589e 100755 --- a/dist/ubuntu/build_deb.sh +++ b/dist/ubuntu/build_deb.sh @@ -8,6 +8,19 @@ fi if [ -e debian ] || [ -e build ] || [ -e target ] || [ -e m2 ] || [ -e dependency-reduced-pom.xml ]; then rm -rf debian build target m2 dependency-reduced-pom.xml fi +sudo apt-get -y update +if [ ! -f /usr/bin/git ]; then + sudo apt-get -y install git +fi +if [ ! -f /usr/bin/mk-build-deps ]; then + sudo apt-get -y install devscripts +fi +if [ ! -f /usr/bin/equivs-build ]; then + sudo apt-get -y install equivs +fi +if [ ! -f /usr/bin/lsb_release ]; then + sudo apt-get -y install lsb-release +fi DISTRIBUTION=`lsb_release -i|awk '{print $3}'` RELEASE=`lsb_release -r|awk '{print $2}'`