This repository was archived by the owner on Jan 27, 2025. It is now read-only.
File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- finish () {
6
- rm -Rf $patches
7
- }
8
- trap finish EXIT
9
-
10
- patches=" $( mktemp -d) "
11
- unzip " $1 " -d $patches
5
+ patches=" $( readlink -f -- $1 ) "
12
6
13
7
for project in $( cd $patches /patches; echo * ) ; do
14
8
p=" $( tr _ / <<< $project | sed -e ' s;platform/;;g' ) "
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ rom_fp="$(date +%y%m%d)"
4
4
mkdir -p release/$rom_fp /
5
5
set -e
6
6
7
- if [ " $# " -ne 3 ]; then
8
- echo " Usage: $0 <android-8.1> <carbon|lineage|rr> <patch to release patches.zip> "
7
+ if [ " $# " -ne 2 ]; then
8
+ echo " Usage: $0 <android-8.1> <carbon|lineage|rr>"
9
9
exit 0
10
10
fi
11
11
localManifestBranch=$1
12
12
rom=$2
13
- patches=$3
14
13
15
14
if [ " $rom " == " carbon" ]; then
16
15
repo init -u https://github.com/CarbonROM/android -b cr-6.1
@@ -25,14 +24,21 @@ if [ -d .repo/local_manifests ] ;then
25
24
else
26
25
git clone https://github.com/phhusson/treble_manifest .repo/local_manifests -b $localManifestBranch
27
26
fi
27
+
28
+ if [ -d patches ]; then
29
+ ( cd patches; git fetch; git reset --hard; git checkout origin/$localManifestBranch )
30
+ else
31
+ git clone https://github.com/phhusson/treble_patches patches -b $localManifestBranch
32
+ fi
33
+
28
34
# We don't want to replace from AOSP since we'll be applying patches by hand
29
35
rm -f .repo/local_manifests/replace.xml
30
36
rm -f .repo/local_manifests/opengapps.xml
31
37
32
38
repo sync -c -j 4 --force-sync
33
39
(cd device/phh/treble; git clean -fdx; bash generate.sh $rom )
34
40
35
- bash " $( dirname " $0 " ) /apply-patches.sh" $ patches
41
+ bash " $( dirname " $0 " ) /apply-patches.sh" patches
36
42
37
43
. build/envsetup.sh
38
44
You can’t perform that action at this time.
0 commit comments