blob: 05c6b8fd1af964839237b5016e073a8e6d9d0c65 (
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
26
27
28
29
30
31
32
|
#!/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"
;;
CYGWIN*)
bin_dir="/usr/bin"
sudo() {
"$@"
}
;;
*)
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
platform=`sibs platform`
sudo cp "$project_dir/sibs-build/$platform/release/sibs" "$bin_dir/sibs"
echo "Copied $project_dir/sibs-build/$platform/release/sibs to $bin_dir/sibs"
echo "Installation successful!"
|