Merge lp:~saviq/unity8/fix-rules into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 874
Merged at revision: 879
Proposed branch: lp:~saviq/unity8/fix-rules
Merge into: lp:unity8
Diff against target: 125 lines (+14/-15)
3 files modified
CODING (+11/-11)
debian/rules (+1/-2)
run_on_device.sh (+2/-2)
To merge this branch: bzr merge lp:~saviq/unity8/fix-rules
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Albert Astals Cid (community) Approve
Didier Roche-Tolomelli Approve
Review via email: mp+218258@code.launchpad.net

Commit message

Suffix .sh to our scripts and clean up debian/rules.

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
No.

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.

 * Did you make sure that your branch does not contain spurious tags?
Yup.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Yes.

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Looks way saner, thanks Michal!

review: Approve
Revision history for this message
Albert Astals Cid (aacid) wrote :

There's two instances of run_on_device in CODING that you probably want to change to run_on_device.sh ?

review: Needs Fixing
Revision history for this message
Albert Astals Cid (aacid) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
dpkg-buildpacakge works

* Did CI run pass? If not, please explain why.
Doesn't matter

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CODING'
2--- CODING 2014-04-24 08:40:40 +0000
3+++ CODING 2014-05-05 09:38:13 +0000
4@@ -20,7 +20,7 @@
5 If its your first time, install build dependencies
6
7 $ cd ~/unity8/trunk
8-$ ./build --setup
9+$ ./build.sh --setup
10
11 this will:
12 - install the required dependencies to build, as well as run on the desktop
13@@ -31,7 +31,7 @@
14 -------------
15
16 $ cd ~/unity8/trunk
17-$ ./build
18+$ ./build.sh
19
20 You may also rebuild with the -c for clean, which just deletes the build
21 directory.
22@@ -43,10 +43,10 @@
23 run the Unity 8 shell
24 ---------------------
25 $ cd ~/unity8/trunk
26-$ ./run
27+$ ./run.sh
28
29 Options can be passed to test the lock screen
30-$ ./run -p OR -k
31+$ ./run.sh -p OR -k
32
33 -p is for pin lock, for which the default prompt answer is "1234"
34 -k is for keylock passphrase, for which the default prompt answer is "password"
35@@ -78,19 +78,19 @@
36 on the device yourself)
37
38 $ cd ~/unity/trunk
39-$ ./run_on_device --setup
40+$ ./run_on_device.sh --setup
41 this will:
42 - install your public SSH key on the device
43 - install the needed dependencies
44
45-$ ./run_on_device
46+$ ./run_on_device.sh
47 this will:
48 - rsync the code to the device
49 - build on the device
50 - replace the running shell
51
52 Options can be passed to test the lock screen
53-$ ./run_on_device -p OR -k
54+$ ./run_on_device.sh -p OR -k
55
56 -p is for pin lock, for which the default prompt answer is "1234"
57 -k is for keylock passphrase, for which the default prompt answer is "password"
58@@ -107,9 +107,9 @@
59 - exporting ANDROID_SERIAL=$your_device_serial or
60 ANDROID_SERIAL=$your_device_ip:5555 will make adb not complain about
61 multiple devices
62-- you can export TARGET_IP=$your_device_ip TARGET_SSH_PORT=22 for run_on_device
63+- you can export TARGET_IP=$your_device_ip TARGET_SSH_PORT=22 for run_on_device.sh
64 to not use adb forwarding - useful if you use multiple devices
65-- using Ninja (package ninja-build - run_on_device -s installs this now)
66+- using Ninja (package ninja-build - run_on_device.sh -s installs this now)
67 will improve build times (especially in the nothing-to-build case)
68
69
70@@ -131,7 +131,7 @@
71 =============
72
73 Tests are run from the build directory (which will be ./builddir if you used
74-the ./build script).
75+the ./build.sh script).
76
77 To run the tests that do not require any graphical capability and therefore
78 are pretty fast run:
79@@ -171,7 +171,7 @@
80 =======================
81
82 Autopilot tests are run from the build directory (which will be ./builddir if you used
83-the ./build script).
84+the ./build.sh script).
85
86 $ make autopilot
87
88
89=== renamed file 'build' => 'build.sh'
90=== modified file 'debian/rules'
91--- debian/rules 2014-03-24 11:32:45 +0000
92+++ debian/rules 2014-05-05 09:38:13 +0000
93@@ -6,8 +6,7 @@
94 export DPKG_GENSYMBOLS_CHECK_LEVEL=4
95 export NO_PNG_PKG_MANGLE=1
96
97-.PHONY: build
98-build %:
99+%:
100 dh $@ --parallel --fail-missing --with python2,python3
101
102 override_dh_auto_clean:
103
104=== renamed file 'run' => 'run.sh'
105=== renamed file 'run_on_device' => 'run_on_device.sh'
106--- run_on_device 2014-03-31 14:01:27 +0000
107+++ run_on_device.sh 2014-05-05 09:38:13 +0000
108@@ -88,7 +88,7 @@
109 }
110
111 build() {
112- exec_with_ssh PATH=/usr/lib/ccache:$PATH "cd $CODE_DIR/ && PATH=/usr/lib/ccache:$PATH ./build"
113+ exec_with_ssh PATH=/usr/lib/ccache:$PATH "cd $CODE_DIR/ && PATH=/usr/lib/ccache:$PATH ./build.sh"
114 }
115
116 run() {
117@@ -105,7 +105,7 @@
118
119 exec_with_ssh "stop unity8"
120 exec_with_ssh "start maliit-server"
121- exec_with_ssh "cd $CODE_DIR/ && ./run $ARGS -- $RUN_OPTIONS"
122+ exec_with_ssh "cd $CODE_DIR/ && ./run.sh $ARGS -- $RUN_OPTIONS"
123 exec_with_ssh "stop maliit-server"
124 exec_with_ssh "start unity8"
125 }

Subscribers

People subscribed via source and target branches