forked from syphyr/cm_build_scripts
/
go_cm11.sh
executable file
·49 lines (39 loc) · 872 Bytes
/
go_cm11.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
sudo update-alternatives --set java /usr/lib/jvm/java-6-oracle/jre/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-6-oracle/bin/javac
# Directory that contains CM build scripts
BUILD_SCRIPT_DIR=~/android
## END EDIT ##
cd $BUILD_SCRIPT_DIR
if [ ! -e ./repo_sync_cm11 ]; then
echo "Repo sync script is not found"
exit
fi
if [ ! -e ./start_build_cm11 ]; then
echo "Start build script is not found"
exit
fi
if [ ! -e ./make_changelog_cm11 ]; then
echo "Make changelog script is not found"
exit
fi
if [ ! -e ./update_web_cm11 ]; then
echo "Update web script is not found"
exit
fi
#echo ""
#echo "Syncing Repos."
#echo ""
#./repo_sync_cm11
echo ""
echo "Creating Changelog."
echo ""
./make_changelog_cm11
echo ""
echo "Building ROM."
echo ""
./start_build_cm11
echo ""
echo "Updating Web Server."
echo ""
./update_web_cm11