-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsync_sources.sh
More file actions
92 lines (70 loc) · 1.97 KB
/
sync_sources.sh
File metadata and controls
92 lines (70 loc) · 1.97 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
#!/bin/bash
#repeat the sync until we have the folder synced
while [ ! -d root_source ]; do
git clone https://github.com/RudyLIFE/root_source
done
while [ ! -d frameworks ]; do
git clone https://github.com/RudyLIFE/frameworks
done
while [ ! -d packages ]; do
git clone https://github.com/RudyLIFE/packages
done
while [ ! -d kernel ]; do
git clone https://github.com/RudyLIFE/kernel
done
while [ ! -d device ]; do
git clone https://github.com/RudyLIFE/device
done
while [ ! -d ndk ]; do
git clone https://github.com/RudyLIFE/ndk
done
while [ ! -d vendor ]; do
git clone https://github.com/RudyLIFE/vendor
done
while [ ! -d tools ]; do
git clone https://github.com/RudyLIFE/tools
done
while [ ! -d hardware ]; do
git clone https://github.com/RudyLIFE/hardware
done
while [ ! -d external ]; do
git clone https://github.com/RudyLIFE/external
done
while [ ! -d external_2 ]; do
git clone https://github.com/RudyLIFE/external_2
done
while [ ! -d prebuilts ]; do
git clone https://github.com/RudyLIFE/prebuilts
done
while [ ! -d prebuilts_2 ]; do
git clone https://github.com/RudyLIFE/prebuilts_2
done
while [ ! -d prebuilts_3 ]; do
git clone https://github.com/RudyLIFE/prebuilts_3
done
while [ ! -d mediatek ]; do
git clone https://github.com/RudyLIFE/mediatek
done
while [ ! -d mediatek_2 ]; do
git clone https://github.com/RudyLIFE/mediatek_2
done
while [ ! -d mediatek_3 ]; do
git clone https://github.com/RudyLIFE/mediatek_3
done
while [ ! -d mediatek_4 ]; do
git clone https://github.com/RudyLIFE/mediatek_4
done
while [ ! -d mediatek_5 ]; do
git clone https://github.com/RudyLIFE/mediatek_5
done
while [ ! -d mediatek_6 ]; do
git clone https://github.com/RudyLIFE/mediatek_6
done
cp -rf root_source/* ./
cp -rf external_*/* ./external
cp -rf prebuilts_*/* ./prebuilts
cp -rf mediatek_*/* ./mediatek
rm -rf mediatek_*
rm -rf external_*
rm -rf prebuilts_*
rm -rf root_source