-
Notifications
You must be signed in to change notification settings - Fork 4
/
go_cm13.sh
executable file
·51 lines (41 loc) · 902 Bytes
/
go_cm13.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
50
51
#!/bin/bash
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
java -version
javac -version
# Directory that contains CM build scripts
BUILD_SCRIPT_DIR=~/android
## END EDIT ##
cd $BUILD_SCRIPT_DIR
if [ ! -e ./repo_sync_cm13 ]; then
echo "Repo sync script is not found"
exit
fi
if [ ! -e ./start_build_cm13 ]; then
echo "Start build script is not found"
exit
fi
if [ ! -e ./make_changelog_cm13 ]; then
echo "Make changelog script is not found"
exit
fi
if [ ! -e ./update_web_cm13 ]; then
echo "Update web script is not found"
exit
fi
echo ""
echo "Creating Changelog."
echo ""
./make_changelog_cm13
echo ""
echo "Building ROM."
echo ""
./start_build_cm13
echo ""
echo "Updating Web Server."
echo ""
./update_web_cm13
echo "Returning back to default Java configuration"
sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
java -version
javac -version
echo "Done."