-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmerge.sh
42 lines (34 loc) · 1.09 KB
/
merge.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
#!/bin/bash
# kang by henlob
TAG=$1
# fwb
echo "Merging FWB..."
git clone -q https://github.com/XOSP-Reborn/frameworks_base base
cd base
git fetch -q https://android.googlesource.com/platform/frameworks/base $TAG
git merge FETCH_HEAD -q -m "Merge tag '$TAG' into eleven"
cd ..
# Settings
echo "Merging Settings..."
git clone -q https://github.com/XOSP-Reborn/packages_apps_Settings settings
cd settings
git fetch -q https://android.googlesource.com/platform/packages/apps/Settings $TAG
git merge FETCH_HEAD -q -m "Merge tag '$TAG' into eleven"
cd ..
# soong
echo "Merging build soong..."
git clone -q https://github.com/XOSP-Reborn/build_soong soong
cd soong
git fetch -q https://android.googlesource.com/platform/build/soong $TAG
git merge FETCH_HEAD -q -m "Merge tag '$TAG' into eleven"
cd ..
# build make
echo "Merging build make..."
git clone -q https://github.com/XOSP-Reborn/build make
cd make
git fetch -q https://android.googlesource.com/platform/build $TAG
git merge FETCH_HEAD -q -m "Merge tag '$TAG' into eleven"
cd ..
# grep fetch heads
echo "Merge done! Conflicts :"
grep -sRi "<<< HEAD" *