-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·39 lines (31 loc) · 955 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
###################################################
# Installation script of Load Inspector
# Author: Rahul Bera ([email protected])
###################################################
SDE_VERSION=9.33
SDE_DOWNLOAD_LINK="https://downloadmirror.intel.com/813591/sde-external-9.33.0-2024-01-07-lin.tar.xz"
SDE_INSTALL_DIR="sde-kit"
if ! [ -d ./${SDE_INSTALL_DIR} ]; then
mkdir ./${SDE_INSTALL_DIR}
fi
if [ -f ./${SDE_INSTALL_DIR}/sde64 ]; then
echo "SDE kit found. Skipping SDE download"
else
echo "Downloading SDE v${SDE_VERSION}..."
wget ${SDE_DOWNLOAD_LINK} -O sde.tar.xz
echo "Uncompressing SDE kit..."
tar -xf sde.tar.xz -C sde-kit --strip-components=1
rm sde.tar.xz
fi
# Source variables
source setvars.sh
# Build inspector tool
cd src/
make
# Check if built properly
if test -f obj-intel64/inspector-tool.so; then
echo "Installation finished successfully"
else
echo "Installation failed"
fi