You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rtpengine/utils/build_deps.sh

23 lines
577 B

#!/bin/bash
#
# build_deps script for travis CI
# installs the build_deps packages needed to build Kamailio
# environment based on Ubuntu 12.04 LTS (precise)
#
BASE_DIR=${1:-$(pwd)}
CONTROL_FILE="${BASE_DIR}/debian/control"
if ! [ -f "${CONTROL_FILE}" ]; then
echo "Error: No ${CONTROL_FILE} found"
exit 1
fi
BUILD_DEPS=($(/usr/bin/gdebi --quiet --non-interactive \
--option=APT::Install-Recommends=false \
--apt-line "${CONTROL_FILE}"))
if [ ${#BUILD_DEPS[@]} -eq 0 ]; then
echo "Error: no build deps packages resolved"
exit 2
fi
apt-get install -y "${BUILD_DEPS[@]}"