aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-04-21 16:40:00 +0300
committerYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-04-21 17:38:51 +0300
commit9bf9ea0c1f5a5569979b42fa0758f79a410bad43 (patch)
tree611b56777a17566faee4c34949b1bd6b81ac468a
parent6364715cc705886b9a318b0da71f0c4048a844cf (diff)
downloadkernel-shark-9bf9ea0c1f5a5569979b42fa0758f79a410bad43.tar.gz
kernel-shark: Integrate install_libkshark-devel.sh
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>
-rw-r--r--README12
-rwxr-xr-xbuild/install_libkshark-devel.sh6
2 files changed, 16 insertions, 2 deletions
diff --git a/README b/README
index b1934c36..652891cf 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 a7e420d8..b20fca0b 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