~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to contrib/DesktopEdition/package_desktop.cmd

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
rem ToDo:
 
3
rem Fix for 1.6
 
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
 
8
 
 
9
set version=Release 1.6.0dev-1
 
10
set buildfile=moin-desktop-1.6.0dev-1
 
11
 
 
12
rem MoinMoin Quelle
 
13
set build=moin--main--1.6
 
14
rem set build=z:\root\moin--main--1.3
 
15
 
 
16
set sevenzippath=C:\Programme\7-Zip\7z
 
17
 
 
18
echo Building DesktopEdition %version% ...
 
19
 
 
20
if exist %build% (
 
21
        if exist moin-desktop (
 
22
                del /Q /F /S moin-desktop >NUL 2>NUL
 
23
                rmdir /S /Q moin-desktop
 
24
        )
 
25
        echo Creating page packages ...
 
26
        cd %build%
 
27
        make pagepacks
 
28
        cd ..
 
29
        
 
30
        echo Creating base system ...
 
31
        md moin-desktop
 
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\"
 
35
        md moin-desktop\docs
 
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
 
52
        
 
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
 
60
        
 
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
 
72
 
 
73
        echo.>> moin-desktop\readme_desktop.txt
 
74
 
 
75
        del /Q /F /S moin-desktop\*.pyc>NUL 2>NUL
 
76
 
 
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.
 
81
echo.
 
82
echo Press CTRL+C if you do not want to have any archives.
 
83
echo Otherwise:
 
84
pause
 
85
 
 
86
echo Creating archives ...
 
87
 
 
88
echo ZIP
 
89
%sevenzippath% a -r -tzip -mx=9 %buildfile%.zip moin-desktop\*
 
90
 
 
91
echo TBZ
 
92
tar cjf %buildfile%.tbz moin-desktop
 
93
 
 
94
echo Py2EXE
 
95
        rem http://starship.python.net/crew/theller/moin.cgi/ExcludingDlls
 
96
        cd moin-desktop
 
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
 
101
        pause
 
102
        del dist\w9xpopen.exe
 
103
        rem C:\UTIL\#archiv\upx\upx --best --force dist\_socket.pyd dist\moin.exe
 
104
        dir dist
 
105
 
 
106
move dist MMDE
 
107
move wikiconfig.py MMDE
 
108
move docs MMDE\docs
 
109
move "MoinMoin DesktopEdition.url" MMDE
 
110
move readme_desktop.txt MMDE
 
111
move wiki MMDE\wiki
 
112
 
 
113
echo 7z,EXE
 
114
%sevenzippath% a -r -t7z -sfx7z.sfx -mx=7 ..\%buildfile%.exe MMDE\*
 
115
cd ..
 
116
 
 
117
 
 
118
echo Created archives.
 
119
 
 
120
) ELSE (
 
121
        echo %build% was not found!
 
122
)
 
123
pause
 
124