From 0b09e97d0d6163b5a898f5642505ee12dd5ef30e Mon Sep 17 00:00:00 2001
From: Charlie Root <root@dec05eba.my.domain>
Date: Sun, 30 Sep 2018 23:44:13 +0200
Subject: Add OpenBSD support

---
 cmake/install.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'cmake')

diff --git a/cmake/install.sh b/cmake/install.sh
index 595fd26..03eae77 100755
--- a/cmake/install.sh
+++ b/cmake/install.sh
@@ -5,7 +5,8 @@ set -e
 case "$(uname -s)" in
 	Linux*)		machine="Linux" ;;
 	Darwin*)	machine="Mac" ;;
-	*)		echo "The install file can only be run on linux and mac" && exit 1 ;;
+	OpenBSD*)	machine="OpenBSD" ;;
+	*)		echo "The install file can only be run on linux, mac and openbsd" && exit 1 ;;
 esac
 
 scriptpath="$(dirname "$0")"
@@ -15,8 +16,9 @@ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../../../
 ninja
 
 case $machine in
-	Linux) 	bin_dir="/usr/bin" ;;
-	Mac)	bin_dir="/usr/local/bin" ;;
+	Linux) 		bin_dir="/usr/bin" ;;
+	Mac)		bin_dir="/usr/local/bin" ;;
+	OpenBSD)	bin_dir="/usr/local/bin" ;;
 esac
 
 sudo cp sibs "$bin_dir"
-- 
cgit v1.2.3-70-g09d2