summaryrefslogtreecommitdiff
path: root/docs/testers/howto.rst
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-02 18:11:18 +0900
committerkali <kali@leap.se>2013-01-02 18:11:18 +0900
commit1278ac2aad2de739e164b76c8533bdc7d9679fd6 (patch)
tree6b9985bd522ff19e046e4d1681084dd3cf322e69 /docs/testers/howto.rst
parent4ad663b935fa1845d426dde99a8272942b620e11 (diff)
remote source for bootstrap script
Diffstat (limited to 'docs/testers/howto.rst')
-rw-r--r--docs/testers/howto.rst65
1 files changed, 4 insertions, 61 deletions
diff --git a/docs/testers/howto.rst b/docs/testers/howto.rst
index e5bf1fa8..aabcb2b0 100644
--- a/docs/testers/howto.rst
+++ b/docs/testers/howto.rst
@@ -26,76 +26,19 @@ First, install all the base dependencies plus git, virtualenv and development fi
Bootstrap script
^^^^^^^^^^^^^^^^
-.. note:: getting latest version of this script.
-
- At some moment we will publish an url from where you can download this script. For now, you can copy and paste this.
-
.. note::
This will fetch the *develop* branch. If you want to test another branch, just change it in the line starting with *pip install...*. Alternatively, bug kali so she add an option branch to a decent script.
.. note::
This script could make use of the after_install hook. Read http://pypi.python.org/pypi/virtualenv/
-Then copy and paste this script somewhere in your path, in the parent folder where you want your testing build to be downloaded. For instance, to `/tmp/leap_client_bootstrap`:
+Download and source the following script in the parent folder where you want your testing build to be downloaded. For instance, to `/tmp/`:
.. code-block:: bash
- :linenos:
-
- #!/bin/bash
-
- # Installs requirements, and
- # clones the latest leap-client
-
- # depends on:
- # openvpn git-core libgnutls-dev python-dev python-qt4 python-setuptools python-virtualenv
-
- # Escape code
- esc=`echo -en "\033"`
-
- # Set colors
- cc_green="${esc}[0;32m"
- cc_yellow="${esc}[0;33m"
- cc_blue="${esc}[0;34m"
- cc_red="${esc}[0;31m"
- cc_normal=`echo -en "${esc}[m\017"`
-
- echo "${cc_yellow}"
- echo "~~~~~~~~~~~~~~~~~~~~~~"
- echo "LEAP "
- echo "client bootstrapping "
- echo "~~~~~~~~~~~~~~~~~~~~~~"
- echo ""
- echo "${cc_green}Creating virtualenv...${cc_normal}"
-
- mkdir leap-client-testbuild
- virtualenv leap-client-testbuild
- source leap-client-testbuild/bin/activate
-
- echo "${cc_green}Installing leap client...${cc_normal}"
-
- # Clone latest git (develop branch)
- # change "develop" for any other branch you want.
-
-
- pip install -e 'git://leap.se/leap_client@develop#egg=leap-client'
-
- cd leap-client-testbuild
-
- # symlink the pyqt libraries to the system libs
- ./src/leap-client/pkg/postmkvenv.sh
-
- echo "${cc_green}leap-client installed! =)"
- echo "${cc_yellow}"
- echo "Launch it with: "
- echo "~~~~~~~~~~~~~~~~~~~~~~"
- echo "bin/leap-client"
- echo "~~~~~~~~~~~~~~~~~~~~~~"
- echo "${cc_normal}"
-
-and then source it::
- $ cd /tmp
- $ source leap_client_bootstrap
+ $ cd /tmp
+ $ wget https://raw.github.com/leapcode/leap_client/develop/pkg/scripts/leap_client_bootstrap.sh
+ $ source leap_client_bootstrap.sh
Tada! If everything went well, you should be able to run the client by typing::