-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuninstall.sh
executable file
·67 lines (53 loc) · 1007 Bytes
/
uninstall.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
Curr_Path=`pwd`
echo $Curr_Path
Bash_Dir=`dirname $0`
echo $Bash_Dir
if [ "$Curr_Path" = "$Bash_Dir" ]
then
echo "Wrong uninstall path! Please make sure you are in a right elf-respect repo!"
exit 1
fi
cd ..
Install_Path=`pwd`
echo "entering "$Install_Path
echo "Deleting SGXSDK..."
rm -rf linux-sgx
echo "Deleting Libelf..."
rm -rf elfutils
echo "Deleting Capstone..."
rm -rf capstone
echo "R U sure U want to uninstall ProofGen?"
read -p "Type y or n" var
if [ var == "y" ]
then
echo "Deleting ProofGen..."
rm -rf proofGen
fi
echo "R U sure U want to uninstall llvm-mc?"
read -p "Type y or n" var
if [ var == "y" ]
then
echo "Deleting LLVM-MC..."
rm -rf llvm-mc
fi
# project name
cd Deflection
cd loader
make clean
rm Makefile
cd target-program
make clean-all
rm Makefile
cd ../..
cd dynamic-loader-checker
make clean
rm Makefile
cd target-program
make clean-all
rm Makefile
cd ../sc-resil-tg
make clean-all
rm Makefile
cd ../..
echo "Uninstall successfully!"