-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
48 lines (37 loc) · 1.04 KB
/
build.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
#!/bin/bash
CURRENTDIR="$PWD"
REPODIR="$PWD/.."
BRANCH="lineage-20.0"
# Reset all existing repo's
cd $REPODIR
repo forall -c git am --abort
repo forall -c git reset --hard
# Drop roomservice.xml
cd $REPODIR
rm -rf .repo/local_manifests
# Fix the future failure during checkout-process in repo
cd $REPODIR
rm -rf prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/*
rm -rf .repo/projects/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9.git
rm -rf hardware/samsung
rm -rf .repo/projects/hardware/samsung.git
rm -rf vendor/samsung
rm -rf .repo/projects/vendor/samsung.git
# (Re)initialize LineageOS 20.0 manifest
cd $REPODIR
repo init -u https://github.com/LineageOS/android.git -b $BRANCH --git-lfs
cd .repo/manifests
git checkout origin/lineage-20.0
cd $REPODIR
repo init -u https://github.com/LineageOS/android.git -b $BRANCH --git-lfs
cd $CURRENTDIR
# Sync with roomservice (Which could fail)
. roomservice.sh
cd $REPODIR
repo sync --force-sync
cd $CURRENTDIR
. apply.sh
cd $REPODIR
. build/envsetup.sh
breakfast i9100
make clean && brunch i9100