~ubuntu-branches/ubuntu/trusty/qtcreator-plugin-ubuntu/trusty

« back to all changes in this revision

Viewing changes to share/qtcreator/ubuntu/scripts/device_portforward

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Benjamin Zeller
  • Date: 2014-04-10 16:54:54 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140410165454-j9syoh0jx6azy7g1
Tags: 3.0.1+14.04.20140410.1-0ubuntu1
[ Benjamin Zeller ]
Added Toolchains and Kit support to automatically.   detect a
available click chroot Added Devicesupport, connected Ubuntu devices
are.   automatically registered in QtCreator and can be set   for
different kits Added Deploysupport(CMake), the projects contents are
uploaded.   automatically using SSH after running make install on a
local   directory Added Run and Debugsupport: the command that
should be run.   on the device is read from the desktop file in the
deployed   directory. This means C+and QML debugging work as well
as QML Profiling Dynamically forward ports, depending on adb
forward --list.   output. Adb Server is not restarted by default
anymore, only a press.   on the refresh button will trigger the
restart. That will fix   problems with failing adb scripts Added
local run support for Ubuntu projects .

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17
17
 
18
18
. `dirname $0`/functions.inc
 
19
shift
19
20
 
20
 
SSHPORT=$2
21
 
QMLPORT=$3
 
21
SSHPORT=$1
 
22
shift
22
23
 
23
24
if [[ -z $SSHPORT ]]; then
24
25
  SSHPORT=2222
25
26
fi
26
27
 
27
 
if [[ -z $QMLPORT ]]; then
28
 
  QMLPORT=3768
29
 
fi
30
 
 
 
28
echo "Forward Local ${1} to Remote 22"
31
29
adb_forward_tcp ${SSHPORT} 22
32
 
adb_forward_tcp ${QMLPORT} 3768
33
 
 
 
30
 
 
31
while (( "$#" )); do
 
32
 
 
33
echo "Forward Local ${1} to Remote ${1}"
 
34
adb_forward_tcp ${1} ${1}
 
35
shift
 
36
 
 
37
done