diff options
Diffstat (limited to 'scripts/install-build-deps.sh')
-rwxr-xr-x | scripts/install-build-deps.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/install-build-deps.sh b/scripts/install-build-deps.sh new file mode 100755 index 0000000..df2552d --- /dev/null +++ b/scripts/install-build-deps.sh @@ -0,0 +1,18 @@ +#!/bin/bash -e +# +# Install build dpenedencies. + +source /etc/os-release +set -x + +case $ID in + ubuntu*) + apt-get install -y gcc make cmake libssh-dev + ;; + centos* | rhel*) + dnf install -y gcc make cmake libssh-devel rpm-build + ;; + *) + echo "unsupported dependency install: $ID" + exit 1 +esac |