-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinfinity.sh
43 lines (33 loc) · 1.01 KB
/
infinity.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
#!/bin/bash
rm -rf .repo/local_manifests/
# Local TimeZone
sudo rm -rf /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
# Rom source repo
repo init --depth=1 --no-repo-verify --git-lfs -u https://github.com/ProjectInfinity-X/manifest -b 15 -g default,-mips,-darwin,-notdefault
echo "=================="
echo "Repo init success"
echo "=================="
# Clone local_manifests repository
git clone -b infinity-15 https://github.com/israfilbd/local_manifests .repo/local_manifests
echo "============================"
echo "Local manifest clone success"
echo "============================"
# Sync the repositories
/opt/crave/resync.sh
echo "============================"
# Export
export BUILD_USERNAME=ij-israfil
export BUILD_HOSTNAME=crave
echo "======= Export Done ======"
# Set up build environment
source build/envsetup.sh
echo "====== Envsetup Done ======="
# Lunch
lunch infinity_RMX1901-user
echo "============="
# Make cleaninstall
make installclean
echo "============="
# Build rom
mka bacon