diff mbox series

[4/4] kernel-shark: Integrate install_libkshark-devel.sh

Message ID 20210421145140.95517-5-y.karadz@gmail.com (mailing list archive)
State Accepted
Commit 9bf9ea0c1f5a5569979b42fa0758f79a410bad43
Headers show
Series Various minor modifications and fixes toward KS 2.0 | expand

Commit Message

Yordan Karadzhov April 21, 2021, 2:51 p.m. UTC
So far "install_libkshark-devel.sh" was an unofficial script that
was used to help installing the "libkshark-devel" component. It was
introduced, because the CMake syntax for doing this is quite hard to
memorize. Here we make this script an integrated part of the build
system. The message output is made consistent with the messages
printed by "install_gui.sh". The usage of the script is explained
in README.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 README                           | 12 +++++++++++-
 build/install_libkshark-devel.sh |  6 +++++-
 2 files changed, 16 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/README b/README
index b1934c3..652891c 100644
--- a/README
+++ b/README
@@ -88,7 +88,17 @@  compiled objects and all files generated by CMake.
 1.6 By default, installation prefix is "/usr/local". It can be changed using
 -D_INSTALL_PREFIX= as a CMake Command-Line option (see the example below).
 
-1.7 In order to uninstall KernelShark do:
+2. To install libkshark-devel do:
+    sudo ./install_libkshark-devel.sh
+
+    This will install all components needed in order to use "libkshark".
+    Note that if you just use:
+
+    sudo make install
+
+    this will install both the GUI and libkshark-devel.
+
+3.  In order to uninstall KernelShark (no matter what has been installed) do:
     cd kernel-shark/build
     ./cmake_uninstall.sh
 
diff --git a/build/install_libkshark-devel.sh b/build/install_libkshark-devel.sh
index a7e420d..b20fca0 100755
--- a/build/install_libkshark-devel.sh
+++ b/build/install_libkshark-devel.sh
@@ -1 +1,5 @@ 
-sudo cmake -DCOMPONENT=libkshark-devel -P cmake_install.cmake
+if cmake -DCOMPONENT=libkshark-devel -P cmake_install.cmake; then
+    echo "libkshark-devel installed correctly"
+else
+        exit 1
+fi