From ab712cf153e543e84a5c6484e19d22ba90bdbeff Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 Dec 2017 06:17:54 +0100 Subject: Add cmake building, add ignore dirs option Sometimes it's not possible to build new sibs with older sibs because of changes that break backwards compatbility. If sibs installation fails with sibs, use cmake. --- cmake/install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 cmake/install.sh (limited to 'cmake') diff --git a/cmake/install.sh b/cmake/install.sh new file mode 100755 index 0000000..384ad5d --- /dev/null +++ b/cmake/install.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +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" +echo "Installation successful!" -- cgit v1.2.3