blob: 530a7bc01ebe23b487baa654c8ae3a58edf7996c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env bash
set -e
case "$(uname -s)" in
Linux*)
bin_dir="/usr/bin"
;;
Darwin*)
bin_dir="/usr/local/bin"
export PKG_CONFIG_PATH="/usr/local/opt/libarchive/lib/pkgconfig/"
;;
OpenBSD*)
bin_dir="/usr/local/bin"
;;
*)
echo "The install file can only be run on linux, mac and openbsd" && exit 1
;;
esac
project_dir=`dirname $0`
sibs build $project_dir --release
sudo cp "$project_dir/sibs-build/release/sibs" "$bin_dir/sibs"
echo "Copied $project_dir/sibs-build/release/sibs to $bin_dir/sibs"
echo "Installation successful!"
|