4
rem Translate to English
5
rem setup.py, welches die configvariablen abfragt und in sich selbst speichert, browserstartoption
6
rem bugs fixen (siehe lokales wiki)
7
rem HowToBuild aktualisieren
9
set version=Release 1.6.0dev-1
10
set buildfile=moin-desktop-1.6.0dev-1
13
set build=moin--main--1.6
14
rem set build=z:\root\moin--main--1.3
16
set sevenzippath=C:\Programme\7-Zip\7z
18
echo Building DesktopEdition %version% ...
21
if exist moin-desktop (
22
del /Q /F /S moin-desktop >NUL 2>NUL
23
rmdir /S /Q moin-desktop
25
echo Creating page packages ...
30
echo Creating base system ...
32
xcopy /E /I /Q "%build%\MoinMoin" "moin-desktop\MoinMoin"
33
xcopy /E /I /Q "%build%\wiki" "moin-desktop\wiki"
34
xcopy /E /I /Q /Y "_underlay\*" "moin-desktop\wiki\underlay\pages\"
36
sed -n "/MoinMoin Version History/,/default options for new users are same/p" <"%build%\docs\CHANGES">"moin-desktop\docs\CHANGES"
37
xcopy /I /Q "%build%\docs\licenses\COPYING" "moin-desktop\docs"
38
xcopy /I /Q "%build%\README" "moin-desktop\docs\"
39
copy _resources\moin.py moin-desktop\ >NUL
40
copy _resources\wikiconfig.py moin-desktop\ >NUL
41
copy "_resources\MoinMoin DesktopEdition.url" moin-desktop\ >NUL
42
del /Q /F /S moin-desktop\.cvsignore>NUL
43
del /Q /F /S moin-desktop\CVS>NUL
44
del /Q /F moin-desktop\MoinMoin\i18n\*.po>NUL
45
del moin-desktop\wiki\underlay\pages\SystemPagesSetup\attachments\extra.zip >NUL
46
del moin-desktop\MoinMoin\_template.py>NUL
47
del moin-desktop\wiki\data\edit-log>NUL
48
del moin-desktop\wiki\README.underlay>NUL
49
del moin-desktop\wiki\underlay.tar>NUL
50
del moin-desktop\wiki\htdocs\index.html>NUL
51
del moin-desktop\wiki\htdocs\applets\index.html>NUL
53
rd /Q /S moin-desktop\wiki\config\>NUL
54
rd /Q /S moin-desktop\wiki\server\>NUL
55
rd /Q /S moin-desktop\wiki\htdocs\applets\FCKeditor\_samples>NUL 2>NUL
56
rd /Q /S moin-desktop\wiki\htdocs\applets\FCKeditor\_testcases>NUL 2>NUL
57
del moin-desktop\wiki\htdocs\applets\FCKeditor\_documentation.html>NUL
58
del moin-desktop\wiki\htdocs\applets\FCKeditor\_whatsnew.html>NUL
59
del moin-desktop\wiki\htdocs\applets\FCKeditor\license.txt>NUL
61
echo MoinMoin DesktopEdition - packaged by AlexanderSchremmer> moin-desktop\readme_desktop.txt
62
echo licensed under GNU GPL, see COPYING>> moin-desktop\readme_desktop.txt
63
echo %version%, see the page SystemInfo for exact revision>> moin-desktop\readme_desktop.txt
64
echo.>> moin-desktop\readme_desktop.txt
65
echo See http://moinmo.in/DesktopEdition for current information.>> moin-desktop\readme_desktop.txt
66
echo.>> moin-desktop\readme_desktop.txt
67
echo MoinMoin needs Python in order to run. You can download it here: http://www.python.org/download/>> moin-desktop\readme_desktop.txt
68
echo Python 2.4.3 is recommended, Python 2.3 is required. Nothing else is needed.>> moin-desktop\readme_desktop.txt
69
echo.>> moin-desktop\readme_desktop.txt
70
echo In order to start MoinMoin DesktopEdition, just run moin.py>> moin-desktop\readme_desktop.txt
71
echo and point your web browser to http://localhost:8080/>> moin-desktop\readme_desktop.txt
73
echo.>> moin-desktop\readme_desktop.txt
75
del /Q /F /S moin-desktop\*.pyc>NUL 2>NUL
77
if exist %buildfile%.tbz del %buildfile%.tbz
78
if exist %buildfile%.zip del %buildfile%.zip
79
if exist %buildfile%.exe del %buildfile%.exe
80
echo Finished base build.
82
echo Press CTRL+C if you do not want to have any archives.
86
echo Creating archives ...
89
%sevenzippath% a -r -tzip -mx=9 %buildfile%.zip moin-desktop\*
92
tar cjf %buildfile%.tbz moin-desktop
95
rem http://starship.python.net/crew/theller/moin.cgi/ExcludingDlls
97
if not exist ..\setup_pyexe.py echo ERROR! setup_pyexe.py not found!
98
if exist build\NUL del /Q /F /S build
99
if exist dist\NUL del /Q /F /S dist
100
python ..\setup_pyexe.py py2exe -x -a
102
del dist\w9xpopen.exe
103
rem C:\UTIL\#archiv\upx\upx --best --force dist\_socket.pyd dist\moin.exe
107
move wikiconfig.py MMDE
109
move "MoinMoin DesktopEdition.url" MMDE
110
move readme_desktop.txt MMDE
114
%sevenzippath% a -r -t7z -sfx7z.sfx -mx=7 ..\%buildfile%.exe MMDE\*
118
echo Created archives.
121
echo %build% was not found!