-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
buildUbu1604-1804.sh
executable file
·115 lines (111 loc) · 4.19 KB
/
buildUbu1604-1804.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
YELLOW="$BOLD\e[93m"
NORMAL="$BOLD\e[0m"
function echoCores {
echo -e $@$NORMAL
}
function pause(){
read -p "$*"
}
menu(){
while true; do
clear
echoCores $YELLOW"================================================"
echoCores $YELLOW"Selecione o tipo de instalacao"
echoCores $YELLOW"1) Com QT"
echoCores $YELLOW"2) Sem QT"
echoCores $YELLOW"========================"
echoCores $YELLOW"Digite a opcao desejada:"
read x
echoCores $YELLOW"Opcao informada ($x)"
echoCores $YELLOW"================================================"
case "$x" in
1)
echoCores $YELLOW"================================================"
echoCores -n $YELLOW"Baixando e instalando dependencias"
echoCores -n $NORMAL""
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libseccomp-dev libcap-dev -y
echoCores $YELLOW"Baixando e instalando libboost-all-dev"
echoCores -n $NORMAL""
sudo apt-get install libboost-all-dev -y
echoCores $YELLOW"Baixando e instalando BerkeleyDB"
echoCores -n $NORMAL""
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
echoCores $YELLOW"Baixando e instalando libminiupnpc-dev"
echoCores -n $NORMAL""
sudo apt-get install libminiupnpc-dev
echoCores $YELLOW"Baixando e instalando libzmq3-dev"
echoCores -n $NORMAL""
sudo apt-get install libzmq3-dev
echoCores $YELLOW"Baixando e instalando QT5"
echoCores -n $NORMAL""
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler -y
echoCores $YELLOW"Baixando e instalando libqrencode-dev"
echoCores -n $NORMAL""
sudo apt-get install libqrencode-dev
echoCores $YELLOW"Realizando limpeza de arquvos temporarios"
echoCores -n $NORMAL""
make clean
find ./src -type d -name ".deps" -exec rm -rf {} +
find ./src -iname ".dirstamp" -exec rm -rf {} +
echoCores $YELLOW"Gerar arquivos de configuracoes obrigatorias"
echoCores -n $NORMAL""
./autogen.sh
echoCores $YELLOW"Confugurando ambiente de compilacao"
echoCores -n $NORMAL""
./configure --disable-tests --disable-bench
echoCores $YELLOW"Compilando binarios"
echoCores -n $NORMAL""
make 2>&1 | tee ./build_log/buildUbu1804.log
sleep 5
pause 'Press [Enter] key to continue...'
exit
echoCores $YELLOW"================================================"
;;
2)
echoCores $YELLOW"================================================"
echoCores $YELLOW"Baixando e instalando dependencias"
echoCores -n $NORMAL""
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libseccomp-dev libcap-dev -y
echoCores $YELLOW"Baixando e instalando libboost-all-dev"
echoCores -n $NORMAL""
sudo apt-get install libboost-all-dev -y
echoCores $YELLOW"Baixando e instalando BerkeleyDB"
echoCores -n $NORMAL""
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
echoCores $YELLOW"Baixando e instalando libminiupnpc-dev"
echoCores -n $NORMAL""
sudo apt-get install libminiupnpc-dev
echoCores $YELLOW"Baixando e instalando libzmq3-dev"
echoCores -n $NORMAL""
sudo apt-get install libzmq3-dev
echoCores $YELLOW"Realizando limpeza de arquvos temporarios"
echoCores -n $NORMAL""
make clean
find ./src -type d -name ".deps" -exec rm -rf {} +
find ./src -iname ".dirstamp" -exec rm -rf {} +
echoCores $YELLOW"Gerar arquivos de configuracoes obrigatorias"
echoCores -n $NORMAL""
./autogen.sh
echoCores $YELLOW"Confugurando ambiente de compilacao"
echoCores -n $NORMAL""
./configure --disable-tests --disable-bench
echoCores $YELLOW"Compilando binarios"
echoCores -n $NORMAL""
make 2>&1 | tee ./build_log/buildUbu1804.log
sleep 5
pause 'Press [Enter] key to continue...'
exit
;;
*)
echoCores $YELLOW"Opcao invalida!"
esac
done
}
menu