forked from CyanogenMod/android_build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vu.sh
65 lines (58 loc) · 1.6 KB
/
vu.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# Copyright (C) 2014 SferaDev @ VanillaRoms
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
clear
echo "Welcome $USER"
echo
echo "What can I do for you?"
echo "Option 0: Repo init VU"
echo "Option 1: Repo sync"
echo "Option 2: Build angler"
echo "Option 3: Build all"
echo "Option 4: Create a changelog"
echo
read -p "Your option: " OPTION
case $OPTION in
"0")
echo "Repo initialing..."
repo init -u git://github.com/VanillaCoding/android.git -b cm-13.0
;;
"1")
echo "Repo syncing..."
repo sync -j12
;;
"2")
echo "Building angler..."
source build/envsetup.sh
brunch angler
;;
"3")
echo "Building thw whole load of unicorns..."
source build/envsetup.sh
brunch hammerhead &&
brunch bullhead &&
brunch angler &&
brunch shamu &&
brunch oneplus2 &&
brunch bacon &&
brunch h815 &&
brunch m8
;;
"4")
echo "Generating Changelog..."
rm -rf ChangeLog
read -p "Since (YYYY-MM-DD): " CHANGELOG_DATE
repo forall -c git log --oneline --since={$CHANGELOG_DATE} --no-merges > ChangeLog
gedit ChangeLog
;;
esac
return 0