view quickinstall @ 200:af91f53c87e8

de translation: minor fixes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 30 Apr 2011 14:25:41 +0200
parents 389cd14f0888
children 2652fa715b44
line wrap: on
line source
# create a virtual environment in directory env/
# needs: curl or wget, unzip, gzip, tar, pip

virtualenv --no-site-packages env
source env/bin/activate

    if test -x /usr/bin/curl
        echo /usr/bin/curl -L -o $1 $2
        /usr/bin/curl -L -o $1 $2
        # github redirects to a url where its cert does not match :(
        echo wget -nc --no-check-certificate -O $1 $2
        wget -nc --no-check-certificate -O $1 $2

# get some 3rd party stuff and unpack them into env/, where the default
# expects them. should be replaced by packaging.
# we do this FIRST, so that breakage with pip install is better visible.

download env/ckeditor.tgz
tar xz -C env/ -f env/ckeditor.tgz

download env/twd.tgz
tar xz -C env/ -f env/twd.tgz

download env/svgedit.tgz
tar xz -C env/ -f env/svgedit.tgz

mkdir env/jquery.fu
download env/jquery.fu/jquery.fileupload.js
download env/jquery.fu/jquery.fileupload-ui.js
download env/jquery.fu/jquery.fileupload-ui.css
download env/jquery.fu/pbar-ani.gif

mkdir env/jquery
download env/jquery/jquery.min.js

download env/
unzip -q -o -d env/ env/

DIR='AnyWikiDraw 0.14'
download env/ ''
unzip -q -o -d env/ env/
cd env/
ln -s "$DIR" AnyWikiDraw
cd ..

# first install babel, moin's will emit a warning if it is not there
pip install babel

# "install" moin2 from repo to the env, this will also install required python
# packages from pypi. we do this LAST, so that breakage is better visible.
pip install -e .

# compile the translations
python compile_catalog --statistics