3
# bbr.sh - Branch, Build, Run
5
# Script to grab trunk for all core apps build and shove to device
6
# Expects a file in current directory called coreapps.txt
7
# which is just a list of all the core apps
9
BUILDLOCATION=$(mktemp -d)
10
COREAPPSLIST='coreapps.txt'
13
for app in $(cat coreapps.txt)
16
echo `date` Branch $app
17
bzr branch -q lp:$app 2>&1 > $BUILDLOCATION/bzr_$app.log
19
echo `date` Build $app
20
debuild -uc -us 2>&1 > $BUILDLOCATION/build_$app.log
23
adb shell mkdir $BUILDLOCATION
25
for deb in $(ls $BUILDLOCATION/*.deb | grep -v autopilot)
27
echo `date` Send $deb to device
28
adb push $deb $BUILDLOCATION 2>&1 > $BUILDLOCATION/push_$app.log
29
echo `date` Install $deb
30
adb shell dpkg -i $deb
35
echo `date` Rebooting device
38
echo `date` Temp files in $BUILDLOCATION can now be deleted