diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-10 14:19:33 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-10 14:19:41 +0100 |
commit | 20d4d34e136cbbc526fbc0246b07e4d7757b32a1 (patch) | |
tree | cc800a24062f1c48a3c1c129be29d873063213a2 /install.sh | |
parent | 99570d3fa5abf548d4e8e5e479d82ee66898b602 (diff) |
Add installer for unix-like systems
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..c5e5c0a --- /dev/null +++ b/install.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -e + +scriptpath="$(dirname "$0")" +mkdir -p "$scriptpath/build/debug" +cd "$scriptpath/build/debug" +cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../../ +ninja +sudo cp sibs /usr/bin/ +echo "Copied $scriptpath/build/debug/sibs to /usr/bin/sibs" |