summaryrefslogtreecommitdiff
path: root/install-build-deps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install-build-deps.sh')
-rwxr-xr-xinstall-build-deps.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/install-build-deps.sh b/install-build-deps.sh
new file mode 100755
index 0000000..9f8e9e7
--- /dev/null
+++ b/install-build-deps.sh
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+
+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