-
Notifications
You must be signed in to change notification settings - Fork 1
/
new.sh
executable file
·76 lines (60 loc) · 2.33 KB
/
new.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
#!/bin/bash
get_rom(){
echo "Available sources:"
echo "1. Matrixx"
echo "2. Awaken"
echo "3. Cherish"
echo "4. Derpfest"
echo "5. New"
read -r -p "Which ROM : 1 - 5 :" $rom
}
get_oth(){
echo "Cloning Kernel Source"
git clone git clone https://github.com/raghavt20/kernel_sm8350.git -b thirteen kernel/motorola/tundra
echo "Cloning Vendor Trees"
git clone git@gitlab.com:shivamingale3/vendor-motorola-tundra.git vendor/motorola/tundra
echo "Cloning QCOM"
git clone git clone https://github.com/LineageOS/android_system_qcom.git system/qcom
echo "Cloning Hardware"
git clone git clone https://github.com/LineageOS/android_hardware_motorola.git hardware/motorola
}
get_trees(){
if [$rom > 0 && $rom <6]; then
if [ $rom == 1 ]; then
directory = "matrixx"
echo "ROM selected Project matrixx"
cd ~/$directory
echo "Cloning device Tree"
git clone git@github.com:Shivamingale3/android_device_matrixx_tundra.git device/motorola/tundra
get_oth
elif [ $rom == 2 ]; then
directory = "awaken"
echo "ROM selected Awaken"
cd ~/$directory
git clone git@github.com:Shivamingale3/android_device_awaken_tundra.git device/motorola/tundra
get_oth
elif [ $rom == 3 ]; then
directory = "cherish"
echo "ROM selected Cherish"
cd ~/$directory
git clone git@github.com:Shivamingale3/android_device_cherish_tundra.git device/motorola/tundra
get_oth
elif [ $rom == 4 ]; then
directory = "derp"
echo "ROM selected Derpfest"
cd ~/$directory
git clone git@github.com:Shivamingale3/android_device_derpfest_tundra.git device/motorola/tundra
get_oth
elif [ $rom == 5 ]; then
read -r -p "Enter rom folder name : " $directory
echo "ROM selected "$directory
cd ~/$directory
git clone git@github.com:Shivamingale3/android_device_motorola_tundra.git -b qpr2 device/motorola/tundra
get_oth
fi
else
get_rom
fi
}
get_rom
get_trees