moin-2.0 / quickinstall.bat

echo off
echo This is the windows version of the "quickinstall" file.
echo It requires the stand-alone wget.exe from
echo and 7za.exe from
echo wget.exe and 7za.exe must be installed in the system path or this directory.

echo Creating a virtual environment in directory env/ ...
virtualenv --no-site-packages env

echo Activating virtual environment ...
call env\Scripts\activate.bat

echo Getting some 3rd party stuff and unpack them into env/, where the default
echo expects them (should be replaced by packaging) ...

wget -nc " 3.5/ckeditor_3.5.tar.gz" -Penv/
7za x env/ckeditor_3.5.tar.gz -y -oenv\
7za x env/ckeditor_3.5.tar -y -oenv\

wget -nc -Penv/
7za x env/TWikiDrawPlugin-moin.tar.gz -y -oenv\
7za x env/TWikiDrawPlugin-moin.tar -y -oenv\

wget -nc -Penv/
7za x env/svg-edit.tar.gz -y -oenv\
7za x env/svg-edit.tar -y -oenv\

mkdir env\jquery
wget -nc -Oenv/jquery/jquery.min.js

wget -nc -Penv/
7za x env/ -y -oenv\

wget -nc -Penv/
7za x env/ -y -oenv\
xcopy "env\AnyWikiDraw 0.14" env\AnyWikiDraw\ /Y /E /H

del /q env\*.tar

echo Installing babel first ...
pip install babel

echo Installing all required python packages from pypi ...
pip install -e .

echo Compiling translations (not required if wiki is English only) ...
python compile_catalog --statistics