17
17
# Author: Christian Dywan <christian.dywan@canonical.com>
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)
42
43
adb push $i $STONE/c/$i || exit 1
45
echo cp -R c/ "\$DEST" >> $RUN/copy.sh
46
echo cp -R c/Ubuntu/Components/* "\$DEST" '|| exit 1' >> $RUN/copy.sh
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
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'
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
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"