-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathmake_linux.sh
More file actions
executable file
·39 lines (33 loc) · 815 Bytes
/
make_linux.sh
File metadata and controls
executable file
·39 lines (33 loc) · 815 Bytes
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
#!/bin/bash
make all TARGET=ia32
make all TARGET=intel64
TT_32=./obj-ia32/TinyTracer32.so
TT_64=./obj-intel64/TinyTracer64.so
APP_TYPE32=$(file "$TT_32")
APP_TYPE64=$(file "$TT_64")
if [[ $APP_TYPE64 == *"ELF 64-bit"* ]];
then
echo "[+] 64 bit build ok."
cp "$TT_64" ./install32_64/TinyTracer64.so
if [[ $? == 0 ]];
then
echo "[+] 64 bit install ok."
else
echo "ERROR: 64 bit install failed."
fi
else
echo "ERROR: Could not build the 64-bit TinyTracer"
fi
if [[ $APP_TYPE32 == *"ELF 32-bit"* ]];
then
echo "[+] 32 bit build ok."
cp "$TT_32" ./install32_64/TinyTracer32.so
if [[ $? == 0 ]];
then
echo "[+] 32 bit install ok."
else
echo "ERROR: 32 bit install failed."
fi
else
echo "ERROR: Could not build the 32-bit TinyTracer"
fi