-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathclone_hi6250-9_s_buildbots.sh
executable file
·64 lines (50 loc) · 1.75 KB
/
clone_hi6250-9_s_buildbots.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
#!/bin/bash
#
# This Script is by Iceows
#
#
#
# Config
BRANCH="lineage-20.0"
LOCAL_PATH="."
GITHUB="https://github.com/"
# Repos
DEVICE_COMMON="iceows/android_device_huawei_hi6250-9-common"
DEVICE_COMMON_PATH="device/huawei/hi6250-9-common"
VENDOR_COMMON="iceows/android_vendor_huawei_hi6250-9-common"
VENDOR_COMMON_PATH="vendor/huawei/hi6250-9-common"
KERNEL="iceows/android_kernel_huawei_hi6250-9"
KERNEL_PATH="kernel/huawei/hi6250-9"
HARDWARE="iceows/android_hardware_huawei"
HARDWARE_PATH="hardware/huawei"
CLANG="iceows/android_prebuilts_clang_host_linux-x86_clang-r416183b1"
CLANG_PATH="prebuilts/clang/host/linux-x86/clang-r416183b1"
# Huawei Anne repo
DEVICE_ANNE="iceows/android_device_huawei_anne"
DEVICE_ANNE_PATH="device/huawei/anne"
VENDOR_ANNE="iceows/android_vendor_huawei_anne"
VENDOR_ANNE_PATH="vendor/huawei/anne"
# Huawei Bond repo
DEVICE_BOND="wudilsr-OpenSource/android_device_huawei_bond"
DEVICE_BOND_PATH="device/huawei/bond"
VENDOR_BOND="wudilsr-OpenSource/android_vendor_huawei_bond"
VENDOR_BOND_PATH="vendor/huawei/bond"
# Remove all
rm -rf "$DEVICE_COMMON_PATH"
rm -rf "$VENDOR_COMMON_PATH"
rm -rf "$KERNEL_PATH"
rm -rf "$HARDWARE_PATH"
rm -rf "$DEVICE_ANNE_PATH"
rm -rf "$VENDOR_ANNE_PATH"
rm -rf "$DEVICE_BOND_PATH"
rm -rf "$VENDOR_BOND_PATH"
# Clone Repos
git clone "$GITHUB""$DEVICE_COMMON" "$DEVICE_COMMON_PATH" -b "$BRANCH"
git clone "$GITHUB""$DEVICE_ANNE" "$DEVICE_ANNE_PATH" -b "$BRANCH"
git clone "$GITHUB""$VENDOR_COMMON" "$VENDOR_COMMON_PATH" -b "$BRANCH"
git clone "$GITHUB""$VENDOR_ANNE" "$VENDOR_ANNE_PATH" -b "$BRANCH"
git clone "$GITHUB""$KERNEL" "$KERNEL_PATH" -b "$BRANCH"
git clone "$GITHUB""$HARDWARE" "$HARDWARE_PATH" -b "$BRANCH"
git clone "$GITHUB""$CLANG" "$CLANG_PATH"
# That's it!
echo "Successfully cloned all repos"