Skip to content

Commit 7109780

Browse files
committed
ubuntu-touch/setup.sh: fix go build step
1 parent be444e1 commit 7109780

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cmd/ubuntu-touch/setup.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,39 @@
33
set -e
44

55
if [ $UID != 0 ]; then
6-
echo "This script must be run as root."
6+
echo 'This script must be run as root.'
77
exit 1
88
fi
99

10-
echo "Remounting root as read-write ------------------------------------------------"
10+
echo 'Remounting root as read-write ------------------------------------------------'
1111

1212
mount -o remount,rw /
1313

14-
echo "Installing Go and dependencies -----------------------------------------------"
14+
echo 'Installing Go and dependencies -----------------------------------------------'
1515

1616
apt-get update
1717
apt-get install -y \
1818
golang-go g++ git pkg-config \
1919
qtbase5-private-dev qtdeclarative5-private-dev libqt5opengl5-dev
2020
apt-get clean
2121

22-
echo "Setting up enviornment for phablet user --------------------------------------"
22+
echo 'Setting up environment for phablet user --------------------------------------'
2323

2424
echo 'export GOPATH=$HOME' >> ~phablet/.bash_profile
2525

26-
echo "Fetching the qml package -----------------------------------------------------"
26+
echo 'Fetching the qml package -----------------------------------------------------'
2727

28-
su -l phablet -c "go get gopkg.in/qml.v0"
28+
su -l phablet -c 'go get gopkg.in/qml.v0'
2929

30-
echo "Installing the .desktop file for the particle example ------------------------"
30+
echo 'Installing the .desktop file for the particle example ------------------------'
3131

32-
APP_ID=gopkg.in.qml.particle-example
32+
APP_ID='gopkg.in.qml.particle-example'
3333
cp ~phablet/src/gopkg.in/qml.v*/cmd/ubuntu-touch/particle.desktop ~phablet/.local/share/applications/$APP_ID.desktop
3434

35-
echo "Building and launching particle example ----------------------------------------------------"
35+
echo 'Building and launching particle example --------------------------------------'
3636

37-
su -l phablet -c "go build gopkg.in/qml.v0/examples/particle"
37+
su -l phablet -c 'cd $HOME/src/gopkg.in/qml.v0/examples/particle; go build'
3838

39-
echo "Launching particle example ---------------------------------------------------"
39+
echo 'Launching particle example ---------------------------------------------------'
4040

4141
su -l phablet -c "upstart-app-launch $APP_ID"

0 commit comments

Comments
 (0)