From df404ec3c6e8e4d218b9742110b52d32bde34a41 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 6 Nov 2022 16:00:18 +0900 Subject: cleanup docker files and build/test procedure --- scripts/install-build-deps.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/install-build-deps.sh (limited to 'scripts/install-build-deps.sh') 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 -- cgit v1.2.3