~popey/+junk/phablet-flash-wrapper

« back to all changes in this revision

Viewing changes to tbbr.sh

  • Committer: Alan Pope
  • Date: 2013-09-04 15:09:14 UTC
  • Revision ID: alan.pope@canonical.com-20130904150914-rnqjzy16ofzpphap
big fixes to tbbr

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
cd $BUILDLOCATION
15
15
echo `date` Branch $BRANCH 
16
16
bzr branch -q $BRANCH 2>&1 > $BUILDLOCATION/bzr.log
17
 
cd * 
 
17
if [ "$?" == "0" ]; then
 
18
  echo `date` Branch OK
 
19
else
 
20
  echo `date` Branch FAIL
 
21
  exit 1
 
22
fi
 
23
 
 
24
cd `ls -F | grep /$`
18
25
echo `date` Build $BRANCH in `pwd`
19
26
debuild -uc -us 2>&1 > $BUILDLOCATION/build.log
 
27
if [ "$?" == "0" ]; then
 
28
  echo `date` Build OK
 
29
else
 
30
  echo `date` Build FAIL
 
31
  exit 1
 
32
fi
20
33
 
21
34
adb shell mkdir $BUILDLOCATION
22
35
 
23
36
DEB=`ls $BUILDLOCATION/*.deb | grep -v autopilot`
24
37
echo `date` Send $DEB to device
25
 
adb push $DEB $BUILDLOCATION 2>&1 > $BUILDLOCATION/push.log
 
38
echo adb push $DEB $BUILDLOCATION 2>&1 > $BUILDLOCATION/push.log
26
39
echo `date` Install $DEB
27
 
adb shell dpkg -i $DEB
 
40
echo adb shell dpkg -i $DEB
28
41
 
29
42
cd $HERE
30
43