Ubuntu Pastebin

Paste from ahayzen at Sun, 15 Nov 2015 20:03:26 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

branch=$1  # lp:music-app
folder=autorunbranch  # music-app

# Build the click package
cd /tmp
bzr branch $branch $folder
cd $folder

# Wait for user confirmation so any manual edits to the branch can be made
read -p "Press Enter to push to device" waitVar

click build .
click-buddy .

adb push *.click /tmp/my.click

adb shell pkcon install-local --allow-untrusted /tmp/my.click

rm -rf /tmp/$folder
Download as text