-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsynconly
executable file
·65 lines (54 loc) · 1.73 KB
/
synconly
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
source ~/bin/helper
source build/envsetup.sh
function sync() {
repo sync -q -j$( nproc --all ) --force-sync --force-remove-dirty -c --no-clone-bundle --no-tags --optimized-fetch --prune
}
function fetch() {
git -C device/xiaomi/davinci/ fetch -q https://github.com/sm6150-dev/android_device_xiaomi_davinci && git -C device/xiaomi/davinci/ checkout FETCH_HEAD
git -C device/xiaomi/sm6150-common/ fetch -q https://github.com/sm6150-dev/android_device_xiaomi_sm6150-common && git -C device/xiaomi/sm6150-common/ checkout FETCH_HEAD
info "Fetching latest sm6150-dev source..."
clear
}
function pick() {
set -e
changes=(
#272303 # DozeSensors: only use proximity sensor if supported
#280082 # FingerprintService: hide InDisplayFingerprintView on Error
#281412 # SystemUI: Don't re add brightness slider if its already present
)
repopick ${changes[@]}&
info "Picking separate commits from gerrit..."
clear
}
function pull() {
repopick -p 278063 -P hardware/qcom-caf/sm8150/audio # hal: Add tfa98xx feedback extension
#repopick -p 275821 # interfaces: Fix blueprint generation
#repopick -p 272451 # org.ifaa.android.manager: Add ifaa apis to unrestricted greylist
repopick -p 277273 # MediaProvider: Check hidden directories recursively
repopick -p 282518 # Launcher3: improve protected app names style
info "Pulling commits from gerrit..."
clear
}
function topic() {
#repopick -t ten-firewall
#repopick -t xiaomi-power-hal
repopick -t screen-off-fod
info "Picking topics from gerrit..."
clear
}
function build() {
clear
DATE_START=$(date +"%s")
buildtype
header "Build Completed in:"
DATE_END=$(date +"%s")
DIFF=$(($DATE_END - $DATE_START))
success "Time: $(($DIFF / 60)) minute(s) and $(($DIFF % 60)) seconds."
success
}
sync
fetch
#pick
pull
topic