diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-01-21 06:25:58 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-01-20 22:05:39 +0900 |
commit | bbc2fbdacfa8238821c127c4cd5c0b9b3c215779 (patch) | |
tree | d940440361bcbec8be1b32385f33504e4d9cc9a1 | |
parent | 331bab6b41799690392794af38f30cbe83bee877 (diff) |
fix install-build-deps.sh to run on FreeBSD
-rwxr-xr-x | scripts/install-build-deps.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/install-build-deps.sh b/scripts/install-build-deps.sh index ac9e4f1..92ee42b 100755 --- a/scripts/install-build-deps.sh +++ b/scripts/install-build-deps.sh @@ -1,7 +1,10 @@ -#!/bin/bash -eu +#!/usr/bin/env bash # # Install build dpenedencies. +set -e +set -u + platform=$(uname -s) if [ -e /etc/os-release ]; then @@ -23,6 +26,9 @@ case $platform in yum install -y \ gcc make cmake zlib-devel openssl-devel rpm-build ;; + FreeBSD-freebsd) + pkg install cmake + ;; *) echo "unsupported platform: $platform" exit 1 |