aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-10 14:19:33 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-10 14:19:41 +0100
commit20d4d34e136cbbc526fbc0246b07e4d7757b32a1 (patch)
treecc800a24062f1c48a3c1c129be29d873063213a2
parent99570d3fa5abf548d4e8e5e479d82ee66898b602 (diff)
Add installer for unix-like systems
-rw-r--r--.gitignore3
-rwxr-xr-xinstall.sh11
-rw-r--r--src/main.cpp2
3 files changed, 14 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index f44fedf..f76c38c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,4 +8,5 @@ install_manifest.txt
compile_commands.json
CTestTestfile.cmake
cmake-build-debug
-.idea \ No newline at end of file
+.idea
+build
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"
diff --git a/src/main.cpp b/src/main.cpp
index f9fbd82..e3f927f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -17,7 +17,7 @@ void usage()
printf("option:\n");
printf(" project path: Path containing project.conf\n");
printf("examples:\n");
- printf(" sibs myProject");
+ printf(" sibs myProject\n");
exit(1);
}