-
Notifications
You must be signed in to change notification settings - Fork 0
/
doha_staging.sh
57 lines (50 loc) · 2.02 KB
/
doha_staging.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
#!/bin/bash
#
# Copyright (C) 2020 kytoaq <[email protected]>
# Copyright (C) 2020 - 2021 Motorola™ Trinket
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Command list
CLONE="git clone -b"
GITHUB="https://github.com"
GITLAB="https:/gitlab.com"
# Organization List
TRINKET_COMMON="trinket-common"
NEMESIS_DEVELOPERS="NemesisDevelopers"
DORITOS_MOTOROLA="DoritosMotorola"
# Repositories List
REPO_DEVICE="device_motorola_doha"
REPO_DEVICE_COMMON="device_motorola_trinket-common"
REPO_VENDOR="vendor_motorola_doha"
REPO_VENDOR_COMMON="vendor_motorola_sm6125-common"
REPO_KERNEL="kernel_motorola_trinket"
REPO_SEPOLICY="sepolicy_trinket-common"
# Optional Repositories
SEPOLICY="sepolicy_trinket-common"
# Set Branches for Repositories
STAGING="staging/lineage-17.1"
# Motorola Paths
PATH_DEVICE="device/motorola/doha"
PATH_DEVIE_COMMON="device/motorola/trinket-common"
PATH_VENDOR="vendor/motorola/doha"
PATH_VENDOR_COMMON="vendor/motorola/sm6125-common"
PATH_SEPOLICY="device/motorola/trinket-common/sepolicy"
PATH_KERNEL="kernel/motorola/trinket"
# Setup
${CLONE} ${STAGING} ${GITHUB}/${TRINKET_COMMON}/${REPO_DEVICE} ${PATH_DEVICE}
${CLONE} ${STAGING} ${GITHUB}/${TRINKET_COMMON}/${REPO_DEVICE_COMMON} ${PATH_DEVIE_COMMON}
${CLONE} ${STAGING} ${GITHUB}/${TRINKET_COMMON}/${REPO_VENDOR} ${PATH_VENDOR}
${CLONE} ${STAGING} ${GITHUB}/${TRINKET_COMMON}/${REPO_VENDOR_COMMON} ${PATH_VENDOR_COMMON}
${CLONE} ${STAGING} ${GITHUB}/${TRINKET_COMMON}/${REPO_KERNEL} ${PATH_KERNEL}
${CLONE} ${STAGING} ${GITHUB}/${TRINKET_COMMON}/${REPO_SEPOLICY} ${PATH_SEPOLICY}