forked from EOSIO/eosio.cdt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sh
executable file
·57 lines (53 loc) · 1.39 KB
/
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
#! /bin/bash
binaries=(eosio-ranlib
eosio-ar
eosio-objdump
eosio-readelf
eosio-abigen
eosio-wasm2wast
eosio-wast2wasm
eosio-pp
eosio-cc
eosio-cpp
eosio-ld)
if [ -d "/usr/local/eosio.cdt" ]; then
printf "\tDo you wish to remove this install? (requires sudo)\n"
select yn in "Yes" "No"; do
case $yn in
[Yy]* )
pushd /usr/local &> /dev/null
rm -rf eosio.cdt
pushd bin &> /dev/null
for binary in ${binaries[@]}; do
rm ${binary}
done
popd &> /dev/null
pushd lib/cmake &> /dev/null
rm -rf eosio.cdt
popd &> /dev/null
break;;
[Nn]* )
printf "\tAborting uninstall\n\n"
exit -1;;
esac
done
fi
if [ -d "/usr/local/eosio.wasmsdk" ]; then
printf "\tDo you wish to remove this install? (requires sudo)\n"
select yn in "Yes" "No"; do
case $yn in
[Yy]* )
pushd /usr/local &> /dev/null
rm -rf eosio.wasmsdk
pushd bin &> /dev/null
for binary in ${binaries[@]}; do
rm ${binary}
done
popd &> /dev/null
break;;
[Nn]* )
printf "\tAborting uninstall\n\n"
exit -1;;
esac
done
fi