~zsombi/ubuntu-ui-toolkit/120-custompanel

« back to all changes in this revision

Viewing changes to push_to_phone.sh

  • Committer: Zsombor Egri
  • Date: 2014-11-04 09:05:25 UTC
  • mfrom: (1247.1.35 110-captions)
  • Revision ID: zsombor.egri@canonical.com-20141104090525-tbp0xnkqeuq4mehp
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# Author: Christian Dywan <christian.dywan@canonical.com>
18
18
 
19
19
ARCH=arm-linux-gnueabihf
20
 
DEST=/usr/lib/$ARCH/qt5/qml/Ubuntu/Components/
 
20
DEST=/usr/lib/$ARCH/qt5/qml/Ubuntu/Components
21
21
RUN=$XDG_RUNTIME_DIR/$(basename $0)
22
22
STONE=/tmp/$(basename $0)
23
23
 
32
32
rm -Rf $RUN
33
33
mkdir -p $RUN
34
34
echo '#!/bin/sh' > $RUN/copy.sh
 
35
echo echo Updating Ubuntu.Components... >> $RUN/copy.sh
35
36
echo cd $STONE >> $RUN/copy.sh
36
37
echo DEST=$DEST >> $RUN/copy.sh
37
38
 
42
43
    adb push $i $STONE/c/$i || exit 1
43
44
done
44
45
cd ..
45
 
echo cp -R c/ "\$DEST" >> $RUN/copy.sh
 
46
echo cp -R c/Ubuntu/Components/* "\$DEST" '|| exit 1' >> $RUN/copy.sh
46
47
 
47
48
for i in 10 11 ListItems Pickers Popups Styles Themes artwork; do
48
49
    adb push modules/Ubuntu/Components/$i/ $STONE/$i || exit 1
49
 
    echo cp -R $i/ "\$DEST"/$i >> $RUN/copy.sh || exit 1
 
50
    echo cp -R $i/ "\$DEST"/$i >> $RUN/copy.sh '|| exit 1' || exit 1
50
51
done
51
52
 
52
53
# Autopilot tests should always match the Toolkit
53
54
adb push tests/autopilot/ubuntuuitoolkit/ $STONE/ap || exit 1
54
 
echo cp -R ap/ /usr/lib/python2.7/dist-packages/ubuntuuitoolkit >> $RUN/copy.sh || exit 1
55
 
echo cp -R ap/ /usr/lib/python3/dist-packages/ubuntuuitoolkit >> $RUN/copy.sh || exit 1
 
55
echo cp -R ap/ /usr/lib/python2.7/dist-packages/ubuntuuitoolkit '|| exit 1' >> $RUN/copy.sh || exit 1
 
56
echo cp -R ap/ /usr/lib/python3/dist-packages/ubuntuuitoolkit '|| exit 1' >> $RUN/copy.sh || exit 1
56
57
adb push examples/ubuntu-ui-toolkit-gallery/ $STONE/ex >> $RUN/copy.sh || exit 1
57
 
echo cp -R ex/ /usr/lib/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery
 
58
echo cp -R ex/ /usr/lib/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery '|| exit 1'
58
59
 
59
60
# For launching the gallery easily
60
 
echo cp ex/*.desktop /usr/share/applications/ >> $RUN/copy.sh || exit 1
 
61
echo cp ex/*.desktop /usr/share/applications/ '|| exit 1' >> $RUN/copy.sh || exit 1
61
62
 
 
63
echo echo ...OK >> $RUN/copy.sh
62
64
chmod +x $RUN/copy.sh
63
65
adb push $RUN/copy.sh $STONE/copy.sh || exit 1
64
66
adb shell "echo $PW | sudo --stdin $STONE/copy.sh"