-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
48 lines (41 loc) · 1003 Bytes
/
build.sh
File metadata and controls
48 lines (41 loc) · 1003 Bytes
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
#!/usr/bin/env bash
repo sync -d -c -f -j64
if [ "$RELEASE_TYPE" = "CM_NIGHTLY" ]
then
if [ "$REPO_BRANCH" = "gingerbread" ]
then
export CYANOGEN_NIGHTLY=true
else
export CM_NIGHTLY=true
fi
elif [ "$RELEASE_TYPE" = "CM_EXPERIMENTAL" ]
then
export CM_EXPERIMENTAL=true
elif [ "$RELEASE_TYPE" = "CM_RELEASE" ]
then
# gingerbread needs this
export CYANOGEN_RELEASE=true
# ics needs this
export CM_RELEASE=true
fi
if [ ! -z "$CM_EXTRAVERSION" ]
then
export CM_EXPERIMENTAL=true
fi
if [ ! -z "$GERRIT_CHANGES" ]
then
curl -O https://raw.github.com/erikcas/hudson/master/repopick.py
export CM_EXPERIMENTAL=true
IS_HTTP=$(echo $GERRIT_CHANGES | grep http)
if [ -z "$IS_HTTP" ]
then
python repopick.py $GERRIT_CHANGES
check_result "gerrit picks failed."
else
python repopick.py $(curl $GERRIT_CHANGES)
check_result "gerrit picks failed."
fi
fi
vendor/cm/get-prebuilts
. build/envsetup.sh && brunch $device
echo Johan Cruijff!!!! The best ever!!!