aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/install.sh b/install.sh
index ac18bf8..c73d777 100755
--- a/install.sh
+++ b/install.sh
@@ -2,10 +2,8 @@
set -e
-scriptpath="$(dirname "$0")"
-mkdir -p "$scriptpath/build/release"
-cd "$scriptpath/build/release"
-cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../../
-ninja
-sudo cp sibs /usr/bin/
-echo "Copied $scriptpath/build/release/sibs to /usr/bin/sibs"
+project_dir=`dirname $0`
+sibs build $project_dir --release
+sudo cp "$project_dir/sibs-build/release/sibs" "/usr/bin/sibs"
+echo "Copied $project_dir/sibs-build/release/sibs to /usr/bin/sibs"
+echo "Installation successful!" \ No newline at end of file