-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
176 lines (107 loc) · 3.06 KB
/
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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#!/bin/bash
spacing=" ------------------------------------------------------------------ "
lang=$(cat $HOME/BorlandC-Linux/config/lang)
sleeptime=0.4
logo=$HOME/BorlandC-Linux/config/logo.sh
clear
sleep $sleeptime
bash $logo
sleep $sleeptime
echo "$spacing"
echo ""
sleep $sleeptime
if [[ $lang = "" ]]
then
echo " Select language: "
echo ""
echo " 0 | English "
echo ""
echo " 1 | Russian "
echo ""
sleep $sleeptime
echo "$spacing "
echo ""
sleep $sleeptime
read -p " What language do you speak? > " choose
case "$choose" in
"0" )
echo en > $HOME/BorlandC-Linux/config/lang; clear; bash $HOME/BorlandC-Linux/install.sh
;;
"1" )
echo ru > $HOME/BorlandC-Linux/config/lang; clear; bash $HOME/BorlandC-Linux/install.sh
;;
esac
else
while [[ $lang = "en" ]]
do
echo " Using language: English "
echo ""
sleep $sleeptime
echo " Preparing to install Borland C++ on Linux..."
echo ""
echo " All program files are in the cloned directory (including your future programs)"
echo ""
echo " More detailed information you can find on https://github.com/ddan9/BorlandC-Linux"
echo ""
echo " If given a choice during installation, select and enter: Y"
echo ""
sleep 10
echo "$spacing"
echo ""
sudo apt install -y sudo
echo ""
sudo apt update
echo ""
sudo apt upgrade -y
echo ""
sudo apt install -y dosbox
echo ""
sudo apt dist-upgrade -y
echo ""
ln -s $HOME/BorlandC-Linux/start.sh $HOME/Borland.sh
sleep 10
echo ""
echo "$spacing"
echo ""
sleep 2
clear
exit
done
while [[ $lang = "ru" ]]
do
echo " Используемый язык: Русский "
echo ""
sleep $sleeptime
echo " Подготовка к установке Borland C++ на Линукс..."
echo ""
echo " Прошу вас заметить, что сама устанавливаемая программа по некоторым причинам не будет переведена на русский язык"
echo ""
echo " Все файлы программы лежат в клонированной директории (в том числе и ваших будущих программ)"
echo ""
echo " Более подробную информацию вы можете найти на https://github.com/ddan9/BorlandC-Linux"
echo ""
echo " Если во время установки вам будут давать выбор, выбирайте и вводите: Y"
echo ""
sleep 10
echo "$spacing"
echo ""
sudo apt install -y sudo
echo ""
sudo apt update
echo ""
sudo apt upgrade -y
echo ""
sudo apt install -y dosbox
echo ""
sudo apt dist-upgrade -y
echo ""
ln -s $HOME/BorlandC-Linux/start.sh $HOME/Borland.sh
sleep 10
echo ""
echo "$spacing"
echo ""
sleep 2
clear
exit
done
fi