forked from syphyr/cm_build_scripts
/
go_twrp.sh
executable file
·49 lines (40 loc) · 878 Bytes
/
go_twrp.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
49
#!/bin/bash
sudo update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/bin/javac
# Directory that contains CM build scripts
BUILD_SCRIPT_DIR=~/android
## END EDIT ##
cd $BUILD_SCRIPT_DIR
if [ ! -e ./repo_sync_twrp ]; then
echo "Repo sync script is not found"
exit
fi
if [ ! -e ./start_build_twrp ]; then
echo "Start build script is not found"
exit
fi
if [ ! -e ./make_changelog_twrp ]; then
echo "Make changelog script is not found"
exit
fi
if [ ! -e ./update_web_twrp ]; then
echo "Email script is not found"
exit
fi
echo ""
echo "Syncing Repos."
echo ""
./repo_sync_twrp
echo ""
echo "Creating Changelog."
echo ""
./make_changelog_twrp
echo ""
echo "Building ROM."
echo ""
./start_build_twrp
echo ""
echo "Sending email."
echo ""
./update_web_twrp
echo ""