changeset 47:026da86712e8

add windows version of quickinstall and moin scripts
author Roger Haase <crosseyedpenguin@yahoo.com>
date Mon, 28 Feb 2011 13:28:19 -0700
parents f63fba326824
children 4d884cd29174
files moin.bat quickinstall.bat
diffstat 2 files changed, 73 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/moin.bat	Mon Feb 28 13:28:19 2011 -0700
@@ -0,0 +1,25 @@
+echo off
+echo.
+echo This executes the "moin" file under Windows.  Read the "moin" file for options.
+echo.
+echo Activating Python environment...
+call env\Scripts\activate.bat
+echo.
+echo Starting server... Press Ctrl-c keys to stop server, 
+echo then reply N to deactivate environment.
+
+if "%1"=="moin" goto Onemoin
+
+echo on
+python moin moin %*
+goto Deactivate
+
+:Onemoin
+echo on
+python moin %*
+
+:Deactivate
+echo off
+echo.
+echo Deactivating Python environment...
+call env\Scripts\deactivate.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/quickinstall.bat	Mon Feb 28 13:28:19 2011 -0700
@@ -0,0 +1,48 @@
+echo off
+echo.
+echo This is the windows version of the "quickinstall" file.
+echo It requires the stand-alone wget.exe from http://users.ugent.be/~bpuype/wget/#download
+echo and 7za.exe from http://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7za920.zip/download
+echo.
+echo wget.exe and 7za.exe must be installed in the system path or this directory.
+echo.
+
+echo Creating a virtual environment in directory env/ ...
+virtualenv --no-site-packages env
+
+echo Activating virtual environment ...
+call env\Scripts\activate.bat
+
+echo Installing all required python packages from pypi ...
+pip install -e .
+
+echo Compiling translations (not required if wiki is English only) ...
+python setup.py compile_catalog --statistics
+
+
+echo Getting some 3rd party stuff and unpack them into env/, where the default
+echo wikiconfig.py expects them (should be replaced by packaging) ...
+
+wget -nc "http://download.cksource.com/CKEditor/CKEditor/CKEditor 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 http://static.moinmo.in/files/packages/TWikiDrawPlugin-moin.tar.gz -Penv/
+7za x env/TWikiDrawPlugin-moin.tar.gz -y -oenv\
+7za x env/TWikiDrawPlugin-moin.tar -y -oenv\
+
+wget -nc http://static.moinmo.in/files/packages/svg-edit.tar.gz -Penv/
+7za x env/svg-edit.tar.gz -y -oenv\
+7za x env/svg-edit.tar -y -oenv\
+
+mkdir env\jquery
+wget -nc http://code.jquery.com/jquery-1.4.4.min.js -Oenv/jquery/jquery.min.js
+
+wget -nc http://svgweb.googlecode.com/files/svgweb-2010-08-10-Owlephant-1.zip -Penv/
+7za x env/svgweb-2010-08-10-Owlephant-1.zip -y -oenv\
+
+wget -nc http://downloads.sourceforge.net/project/anywikidraw/anywikidraw/anywikidraw-0.14/anywikidraw-0.14.zip?use_mirror=ignum -Penv/
+7za x env/anywikidraw-0.14.zip -y -oenv\
+xcopy "env\AnyWikiDraw 0.14" env\AnyWikiDraw\ /Y /E /H
+
+del /q env\*.tar