From 2db52244ed7393fef94da2826126ecad392239e4 Mon Sep 17 00:00:00 2001 From: Luc Saffre Date: Thu, 9 Mar 2017 10:52:15 +0200 Subject: [PATCH] http://luc.lino-framework.org/blog/2017/0309.html --- docs/dev/install_dev_projects.sh | 41 ++++++++++++++++++++++++++++++-- docs/dev/overview.rst | 2 +- lino_book/setup_info.py | 2 +- 3 files changed, 41 insertions(+), 4 deletions(-) mode change 100644 => 100755 docs/dev/install_dev_projects.sh diff --git a/docs/dev/install_dev_projects.sh b/docs/dev/install_dev_projects.sh old mode 100644 new mode 100755 index 145d8504..1a2edf28 --- a/docs/dev/install_dev_projects.sh +++ b/docs/dev/install_dev_projects.sh @@ -1,6 +1,36 @@ #!/bin/bash set -e # exit on error +if [ "$1" = "-h" -o "$1" = "--help" ] +then + cat < ] + +When invoked with an envname, then it creates both that virtualenv and +a directory repositories. + +Without an envname it assumes that you want to install Lino into the +current environment and that you are in your existing repositories +directory. + +USAGE + exit -1 +fi + +function prepare_env { + env=$1 + if [ -d $env ] ; then + echo Oops, a directory $env exists already. + echo Delete it yourself if you dare! + exit -1 + fi + virtualenv $env + . $env/bin/activate + mkdir repositories + cd repositories +} + function install { nickname=$1 owner=$2 @@ -14,6 +44,11 @@ function install { pip install -e $nickname } + +if [[ $1 ]] ; then + prepare_env $1 +fi + install cd lsaffre commondata install be lsaffre commondata-be install ee lsaffre commondata-ee @@ -28,6 +63,8 @@ install voga lino-framework voga install avanti lino-framework avanti install book lino-framework book install ext6 lino-framework extjs6 -install patrols lino-framework patrols -install logos lino-framework logos + +# the following are not really needed +install patrols lsaffre lino-patrols +install logos lsaffre lino-logos diff --git a/docs/dev/overview.rst b/docs/dev/overview.rst index 5d169ce3..84ebe907 100644 --- a/docs/dev/overview.rst +++ b/docs/dev/overview.rst @@ -36,7 +36,7 @@ Packages - :ref:`avanti` - :ref:`presto` - :ref:`extjs6`. -- :ref:`algus`. +- ``algus`` diff --git a/lino_book/setup_info.py b/lino_book/setup_info.py index 74377d56..10f82fcf 100644 --- a/lino_book/setup_info.py +++ b/lino_book/setup_info.py @@ -18,7 +18,7 @@ install_requires=[ 'lino', 'selenium', 'django-iban', 'metafone', 'channels', - 'djangorestframework', + 'djangorestframework', 'bleach', 'lino-cosi', 'commondata', 'commondata.ee', 'commondata.be'], tests_require=['pytest'],