From ead2152d6f0d15f7e662975fb3ed8525109794c3 Mon Sep 17 00:00:00 2001 From: tox-user <32248732+tox-user@users.noreply.github.com> Date: Mon, 25 Jun 2018 20:09:41 +0000 Subject: [PATCH] fix: simple_make.sh script - fix crash when run without parameters - use cmake instad of automake for building toxcore --- bootstrap.sh | 18 +----------------- simple_make.sh | 4 ++-- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a01515b38..c0a89328c 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -93,23 +93,7 @@ install_toxcore() { "${BASE_DIR}/${TOXCORE_DIR}" pushd ${BASE_DIR}/${TOXCORE_DIR} - ./autogen.sh - - # configure - if [[ $SYSTEM_WIDE = "false" ]] - then - ./configure --prefix=${BASE_DIR} - else - ./configure - fi - - # ensure A/V support is enabled - if ! grep -Fxq "BUILD_AV_TRUE=''" config.log - then - echo "A/V support of libtoxcore is disabled but required by qTox. Aborting." - echo "Maybe the dev-packages of libopus and libvpx are not installed?" - exit 1 - fi + cmake . # compile make -j $(nproc) diff --git a/simple_make.sh b/simple_make.sh index 7f8ab359e..c90ff93f4 100755 --- a/simple_make.sh +++ b/simple_make.sh @@ -3,8 +3,8 @@ set -eu -o pipefail # additional flags for apt-get, used for CI -readonly APT_FLAGS=$1 -readonly WITHOUT_SQLCIPHER=$2 +readonly APT_FLAGS='$1' +readonly WITHOUT_SQLCIPHER='$2' apt_install() { local apt_packages=(