← Back to team overview

kicad-developers team mailing list archive

Saving bandwidth in the install script (with patch)

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Heyho,
in response to a question in the irc channel about the checkout size
of the doc repo whilst using the install script, I've searched for a
way to get a smaller checkout size.
The bzr checkout command got:
  --lightweight  Perform a lightweight checkout.  Lightweight checkouts
                 depend on access to the branch for every operation.
                 Normal checkouts can perform common operations like
                 diff and status without such access, and also support
                 local commits.

This takes away about 400mb (iirc) from the checkout from the doc repo.
Maybe this option should be added to the rest of the checkouts in the
script too (dunno if some of those depend on a complete repository
while building / if it's desired to being able to build without an
internet connection if calls to bzr are made).
Building / installing the docs worked fine from the lightweight checkout.

See attached patch for the script.

Bye,
imp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTC1lmAAoJEMrhIQwWBCkUvKQP/2c49YJEGLDMLhNrIOMaD7Lf
VqD4Wt0UsSXZOxc45EwtV+c77/qhPUpPs5DF+mKaUKlsv/50saHMuhwn/qWiagXo
P+eQJQ7EtBQZROhES077dC0/knGdEbx8/x9MvkcIeqp1pycfW3Al13SuMwWmLta+
KMbCmzTWzliXVAoQc/vsjsxU7NJGLgj4vqfv45YqW8j32QKDToHs30ZlT0fNG9V+
zMGf8i8cNLqUicRK3oQcJkyF1cCWNSREWCIc0U7lybETmsHFj/Y4zwlqStAZBa6G
03aCKi8QqVsXa8ZMceIJ7yVoUVon5zSIK5h6nzrsN86QNACeDWNkE5eE113/BSBX
xu8sZHcKFDIrclKPBtE3rdPuHzqVl5YNg6XqpGVhZAe3K0Nq8pJXC/pcAqnZT1zi
yig88w7/LntVBwM14gfwX4uLaKO6DNpxYC8xap76lJ4Twqt5tzNyQ8RLohyXp0Kd
luaK+KmZFE+ePibiOs+ydGK21Xp0W39pt7I/CDL9pVNxNwx64NP0rQMviJjXWIDF
xXHz6f3q8yMGXgmQRqDggLzGBMKzgz04fcnwLP1o/Pk+KKH8BUOxO0XYkvQU0ajO
Yu/HuRKoRXjO2WSmggLlppTiFoW/qxeIaIqCv5IQJa57/36vWZUDRzyr3hjGpEz8
2PYRV67vRrfps05J18gz
=eIzr
-----END PGP SIGNATURE-----
=== modified file 'scripts/kicad-install.sh'
--- scripts/kicad-install.sh	2014-01-20 19:10:45 +0000
+++ scripts/kicad-install.sh	2014-02-24 14:18:05 +0000
@@ -217,7 +217,7 @@
 
     echo "step 5) checking out the documentation from launchpad repo..."
     if [ ! -d "$WORKING_TREES/kicad-doc.bzr" ]; then
-        bzr checkout lp:~kicad-developers/kicad/doc kicad-doc.bzr
+        bzr checkout --lightweight lp:~kicad-developers/kicad/doc kicad-doc.bzr
         echo " docs checked out."
     else
         cd kicad-doc.bzr