diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-11-06 16:00:18 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-11-06 16:03:47 +0900 |
commit | df404ec3c6e8e4d218b9742110b52d32bde34a41 (patch) | |
tree | 020fe6f120c51e0b3e1ed1b3dbeeb0580ce10606 /scripts/install-build-deps.sh | |
parent | 15dbb564c8a68a159b997f113751bbbc038b44d0 (diff) |
cleanup docker files and build/test procedure
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 |