-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrepo_sync_lineage16
executable file
·61 lines (52 loc) · 1.34 KB
/
repo_sync_lineage16
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
#!/bin/bash
# Path to root of CM project directory
CM_PROJECT_DIR=~/android/system/lineage-16.0
CM_DEVICE=$CM_PROJECT_DIR/device/samsung/gts210vewifi
CM_KERNEL=$CM_PROJECT_DIR/kernel/samsung/msm8976
CM_VENDOR=$CM_PROJECT_DIR/vendor/samsung
CM_COMMON=$CM_PROJECT_DIR/device/samsung/msm8976-common
CM_HARDWARE=$CM_PROJECT_DIR/hardware/samsung
## End Edit
cd "$CM_PROJECT_DIR"
repo sync --no-clone-bundle
echo ""
if [ -d "$CM_DEVICE" ]; then
cd "$CM_DEVICE"
echo "Rebasing device_samsung_gts210vewifi repo."
git checkout lineage-16.0
git fetch lineage
git rebase lineage/lineage-16.0
echo ""
fi
if [ -d "$CM_COMMON" ]; then
cd "$CM_COMMON"
echo "Rebasing device_samsung_msm8976-common repo."
git checkout lineage-16.0
git fetch lineage
git rebase lineage/lineage-16.0
echo ""
fi
#if [ -d "$CM_HARDWARE" ]; then
# cd "$CM_HARDWARE"
# echo "Rebasing hardware_samsung repo."
# git checkout lineage-16.0
# git fetch lineage
# git rebase lineage/lineage-16.0
# echo ""
#fi
if [ -d "$CM_KERNEL" ]; then
cd "$CM_KERNEL"
echo "Rebasing kernel_samsung_msm8976 repo."
git checkout lineage-16.0
git fetch lineage
git rebase lineage/lineage-16.0
echo ""
fi
if [ -d "$CM_VENDOR" ]; then
cd "$CM_VENDOR"
echo "Rebasing vendor_samsung repo."
git checkout lineage-16.0
git fetch lineage
git rebase lineage/lineage-16.0
echo ""
fi