aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 775fa6b90885b729602de204985522bbb22ae75d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

set -e

case "$(uname -s)" in
	Linux*)		bin_dir="/usr/bin" ;;
	Darwin*)	bin_dir="/usr/local/bin" ;;
	*)		echo "The install file can only be run on linux and mac" && 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!"