forked from dhacker29/gitweb_manifest
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpicks.sh
executable file
·48 lines (37 loc) · 876 Bytes
/
picks.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
# symlinked from local_manifest repo
# Run from root of source tree
. build/envsetup.sh
# Initialize helper functions
. helper_functions
function cr() {
cd - > /dev/null
}
if [ "$1" == "--verify" ]; then
verify=1
[ -f $ROOT/.files_to_verify ] && rm $ROOT/.files_to_verify
fi
function pick() {
declare -a array=("${!1}")
if [ "$verify" == "1" ]; then
directory=`pwd`
echo "repo:${directory}" >> $ROOT/.files_to_verify
fi
for index in ${!array[@]}; do
pstest ${array[index]}
if [ "$verify" == "1" ]; then
echo ${array[index]} >> $ROOT/.files_to_verify
fi
done
}
declare -a build=('14560' '15458')
declare -a fw_base=('14470' '15747' '15764')
declare -a romcontrol=('14555' '15794' '15748')
cd build
pick build[@]
cr
cd frameworks/base
pick fw_base[@]
cr
cd packages/apps/ROMControl
pick romcontrol[@]
cr