aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorCharlie Root <root@dec05eba.my.domain>2018-09-30 23:44:13 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit0b09e97d0d6163b5a898f5642505ee12dd5ef30e (patch)
tree6464ce5279090cf99aa957aaca1faf68c50db095 /cmake
parent147188af8356d21fb9720308ef4912e1f3a22a15 (diff)
Add OpenBSD support
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/install.sh8
1 files changed, 5 insertions, 3 deletions
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"