mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
debian: add a utility to install necessary build dependencies
This commit is contained in:
parent
38379a5f0d
commit
b13f18ba8d
13
debian/util.sh
vendored
13
debian/util.sh
vendored
@ -57,10 +57,23 @@ list_build_depends () {
|
|||||||
echo "${deps# }"
|
echo "${deps# }"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_build_depends () {
|
||||||
|
local apt=""
|
||||||
|
if [ -n "$(which aptitude)" ]; then
|
||||||
|
apt=$(which aptitude)
|
||||||
|
elif [ -n "$(which apt-get)" ]; then
|
||||||
|
apt=$(which apt-get)
|
||||||
|
else
|
||||||
|
err "Can't find apt-get or aptitude; are you running on debian?"
|
||||||
|
fi
|
||||||
|
$apt install $(list_build_depends)
|
||||||
|
}
|
||||||
|
|
||||||
cmd="$1"
|
cmd="$1"
|
||||||
shift
|
shift
|
||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
create-dbg-pkgs) create_dbg_pkgs ;;
|
create-dbg-pkgs) create_dbg_pkgs ;;
|
||||||
list-build-depends) list_build_depends ;;
|
list-build-depends) list_build_depends ;;
|
||||||
|
install-build-depends) install_build_depends ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user