forked from cimbombom40/openvision-oe-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmodule.sh
More file actions
executable file
·311 lines (311 loc) · 6.48 KB
/
submodule.sh
File metadata and controls
executable file
·311 lines (311 loc) · 6.48 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
#!/bin/sh
echo ""
RED='\033[0;31m'
NC='\033[0m' # No Color
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
echo "This is only for Open Vision Developers with push access"
echo ""
echo -e "First choose what kind of submodule update do you want?"
echo -e "Answers are in ${GREEN}green:${NC}"
echo -e "${GREEN}All ${NC}- ${GREEN}Specific"
echo -e ""
echo -e "${NC}Enter submodule type:${GREEN}"
echo -e ""
read SUBMODULETYPE
echo -e "${NC}"
if [ $SUBMODULETYPE != "All" -a $SUBMODULETYPE != "Specific" ]
then
echo -e "${RED}Not a valid answer!${NC}"
echo -e ""
exit 0
fi
echo "Stage 1: git pull for new changes"
echo ""
if [ $SUBMODULETYPE = "Specific" ]
then
echo -e "${NC}Enter submodule name without meta-:${GREEN}"
echo -e ""
read SUBMODULENAME
echo -e "${NC}"
cd meta-${SUBMODULENAME}
echo "Checking out meta-${SUBMODULENAME} develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
echo "Stage 2: git add for new changes"
echo ""
git add meta-${SUBMODULENAME}
git commit --dry-run
read -p "The above changes will be committed and pushed to Open Vision, [A]bort [P]roceed: " choice
if [ "$choice" = "P" -o "$choice" = "p" ];then
git commit -S -m "Update meta-${SUBMODULENAME} submodule using submodule.sh"
echo "Stage 3: git push for new changes"
echo ""
git push
echo "Done: the repository got updated to its latest version!"
echo ""
else
exit 0
fi
fi
if [ $SUBMODULETYPE = "All" ]
then
cd meta-amiko
echo "Checking out meta-amiko develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-ax
echo "Checking out meta-ax develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-azbox
echo "Checking out meta-azbox develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-beyonwiz
echo "Checking out meta-beyonwiz develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-blackbox
echo "Checking out meta-blackbox develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-broadmedia
echo "Checking out meta-broadmedia develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-ceryon
echo "Checking out meta-ceryon develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-clap
echo "Checking out meta-clap develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-cube
echo "Checking out meta-cube develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-dags
echo "Checking out meta-dags develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-dinobot
echo "Checking out meta-dinobot develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-dream
echo "Checking out meta-dream develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-ebox
echo "Checking out meta-ebox develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-edision
echo "Checking out meta-edision develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-entwopia
echo "Checking out meta-entwopia develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-formuler
echo "Checking out meta-formuler develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-gfutures
echo "Checking out meta-gfutures develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-gigablue
echo "Checking out meta-gigablue develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-hypercube
echo "Checking out meta-hypercube develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-ini
echo "Checking out meta-ini develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-ixuss
echo "Checking out meta-ixuss develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-linkdroid
echo "Checking out meta-linkdroid develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-maxytec
echo "Checking out meta-maxytec develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-minix
echo "Checking out meta-minix develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-octagon
echo "Checking out meta-octagon develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-odin
echo "Checking out meta-odin develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-odroid
echo "Checking out meta-odroid develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-protek
echo "Checking out meta-protek develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-raspberrypi
echo "Checking out meta-raspberrypi develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-sh4
echo "Checking out meta-sh4 develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-tiviar
echo "Checking out meta-tiviar develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-tripledot
echo "Checking out meta-tripledot develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-uclan
echo "Checking out meta-uclan develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-ultramini
echo "Checking out meta-ultramini develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-vuplus
echo "Checking out meta-vuplus develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-wetek
echo "Checking out meta-wetek develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-xcore
echo "Checking out meta-xcore develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-xp
echo "Checking out meta-xp develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-xtrend
echo "Checking out meta-xtrend develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
cd meta-zgemma
echo "Checking out meta-zgemma develop branch:"
git checkout develop
git pull
echo -e "\n"
cd ..
echo "Stage 2: git add for new changes"
echo ""
git add meta-*
git commit --dry-run
read -p "The above changes will be committed and pushed to Open Vision, [A]bort [P]roceed: " choice
if [ "$choice" = "P" -o "$choice" = "p" ];then
git commit -S -m "Update submodules using submodule.sh"
echo "Stage 3: git push for new changes"
echo ""
git push
echo "Done: all git repositories got updated to their latest versions!"
echo ""
else
exit 0
fi
fi