annotate Makefile @ 3681:457a1f43f7eb

MoinPagesEditorGroup is not needed any more in distribution's underlay
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Jun 2008 16:26:19 +0200
parents 1e699674f73b
children c19b7a3d7539
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 #
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 # Makefile for MoinMoin
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
3 #
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4
1598
dec11b291ba5 move the wikiconfig.py we use for testing out of the way
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1056
diff changeset
5 # location for the wikiconfig.py we use for testing:
1603
767109c48208 rearrange testing setup, make moin.py runnable from toplevel dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1598
diff changeset
6 export PYTHONPATH=$(PWD)/tests:$(PWD)
1598
dec11b291ba5 move the wikiconfig.py we use for testing out of the way
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1056
diff changeset
7
1603
767109c48208 rearrange testing setup, make moin.py runnable from toplevel dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1598
diff changeset
8 testwiki := ./tests/wiki
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
9 share := ./wiki
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
10
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
11 all:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12 python setup.py build
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
13
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
14 install-docs:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
15 -mkdir build
3531
1e699674f73b make interwiki install-docs (and changed it to use master17)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3381
diff changeset
16 wget -U MoinMoin/Makefile -O build/INSTALL.html "http://master17.moinmo.in/MoinMoin/InstallDocs?action=print"
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
17 sed \
3531
1e699674f73b make interwiki install-docs (and changed it to use master17)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3381
diff changeset
18 -e 's#href="/#href="http://master17.moinmo.in/#g' \
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
19 -e 's#http://[a-z\.]*/wiki/classic/#/wiki/classic/#g' \
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
20 -e 's#http://[a-z\.]*/wiki/modern/#/wiki/modern/#g' \
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
21 -e 's#http://[a-z\.]*/wiki/rightsidebar/#/wiki/rightsidebar/#g' \
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
22 -e 's#/wiki/classic/#wiki/htdocs/classic/#g' \
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
23 -e 's#/wiki/modern/#wiki/htdocs/modern/#g' \
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
24 -e 's#/wiki/rightsidebar/#wiki/htdocs/rightsidebar/#g' \
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
25 build/INSTALL.html >docs/INSTALL.html
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
26 -rm build/INSTALL.html
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
27
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
28 -rmdir build
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
29
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
30 interwiki:
3531
1e699674f73b make interwiki install-docs (and changed it to use master17)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3381
diff changeset
31 wget -U MoinMoin/Makefile -O $(share)/data/intermap.txt "http://master17.moinmo.in/InterWikiMap?action=raw"
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
32 chmod 664 $(share)/data/intermap.txt
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
33
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
34 check-tabs:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
35 @python -c 'import tabnanny ; tabnanny.check("MoinMoin")'
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
36
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
37 # Create documentation
491
be33ecd58d4e add run() methods to scripts, include version info into MoinMoin/__init__.py for epydoc
Thomas Waldmann <tw@waldmann-edv.de>
parents: 365
diff changeset
38 epydoc: patchlevel
2056
fca8ed243a88 fixed Makefile for epydoc 3.0
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2055
diff changeset
39 @epydoc -o ../html-1.7 --name=MoinMoin --url=http://moinmo.in/ --graph=all --graph-font=Arial MoinMoin
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
40
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
41 # Create new underlay directory from MoinMaster
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
42 # Should be used only on TW machine
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
43 underlay:
504
67d5daa9e872 moin maint reducewiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 491
diff changeset
44 rm -rf $(share)/underlay
3381
c8296a0c9799 updated Makefile for 1.7 underlay (pathes, use master17.moinmo.in, use .tar)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3175
diff changeset
45 MoinMoin/script/moin.py --config-dir=/srv/moin/cfg/1.7 --wiki-url=master17.moinmo.in/ maint globaledit
c8296a0c9799 updated Makefile for 1.7 underlay (pathes, use master17.moinmo.in, use .tar)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3175
diff changeset
46 MoinMoin/script/moin.py --config-dir=/srv/moin/cfg/1.7 --wiki-url=master17.moinmo.in/ maint reducewiki --target-dir=$(share)/underlay
3681
457a1f43f7eb MoinPagesEditorGroup is not needed any more in distribution's underlay
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3531
diff changeset
47 rm -rf $(share)/underlay/pages/InterWikiMap
457a1f43f7eb MoinPagesEditorGroup is not needed any more in distribution's underlay
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3531
diff changeset
48 rm -rf $(share)/underlay/pages/MoinPagesEditorGroup
3381
c8296a0c9799 updated Makefile for 1.7 underlay (pathes, use master17.moinmo.in, use .tar)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3175
diff changeset
49 cd $(share); rm -f underlay.tar; tar cf underlay.tar underlay
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
50
315
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
51 pagepacks:
2006
1339d6fdc4ff Changed tests to use py.test. Also changed the semantics a bit - the test wiki directory is only created freshly if it does not exist.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 1920
diff changeset
52 @python MoinMoin/_tests/maketestwiki.py
1603
767109c48208 rearrange testing setup, make moin.py runnable from toplevel dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1598
diff changeset
53 @MoinMoin/script/moin.py --config-dir=$(testwiki)/.. maint mkpagepacks
315
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
54 cd $(share) ; rm -rf underlay
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
55 cp -a $(testwiki)/underlay $(share)/
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
56
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
57 dist:
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
58 -rm MANIFEST
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
59 python setup.py sdist
830cf8bdcf24 implemented 'make pagepacks', updated underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 313
diff changeset
60
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
61 # Create patchlevel module
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
62 patchlevel:
596
1c326229c683 use hg for patchlevel generation (via hg identify)
tw@waldmann-edv.de
parents: 562
diff changeset
63 @echo -e patchlevel = "\"`hg identify`\"\n" >MoinMoin/patchlevel.py
730
2fefb02cf54f update version in MoinMoin/__init__.py by make patchlevel target
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 597
diff changeset
64 @MoinMoin/version.py update
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
65
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
66 # Report translations status
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
67 check-i18n:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
68 MoinMoin/i18n/check_i18n.py
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
69
731
f78e361cb786 remove reference to tla in Makefile comment
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 730
diff changeset
70 # Update the workdir from the default pull repo
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
71 update:
597
16519af337fe remove some references to tla
tw@waldmann-edv.de
parents: 596
diff changeset
72 hg pull -u
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
73 $(MAKE) patchlevel
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
74
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
75 # Update underlay directory from the tarball
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
76 update-underlay:
3381
c8296a0c9799 updated Makefile for 1.7 underlay (pathes, use master17.moinmo.in, use .tar)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3175
diff changeset
77 cd $(share); rm -rf underlay; tar xf underlay.tar
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
78
2006
1339d6fdc4ff Changed tests to use py.test. Also changed the semantics a bit - the test wiki directory is only created freshly if it does not exist.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 1920
diff changeset
79 test:
1339d6fdc4ff Changed tests to use py.test. Also changed the semantics a bit - the test wiki directory is only created freshly if it does not exist.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 1920
diff changeset
80 @echo Testing is now done using \`py.test\`. py.test can be installed by downloading from http://codespeak.net/py/dist/download.html
1339d6fdc4ff Changed tests to use py.test. Also changed the semantics a bit - the test wiki directory is only created freshly if it does not exist.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 1920
diff changeset
81 @echo Writing tests is explained on http://codespeak.net/py/dist/test.html
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
82
886
203686df2c6d Added a makefile target for coverage analysis of the unit tests (called coverage).
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 731
diff changeset
83 coverage:
2006
1339d6fdc4ff Changed tests to use py.test. Also changed the semantics a bit - the test wiki directory is only created freshly if it does not exist.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 1920
diff changeset
84 @python MoinMoin/_tests/maketestwiki.py
886
203686df2c6d Added a makefile target for coverage analysis of the unit tests (called coverage).
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 731
diff changeset
85 @python -u -m trace --count --coverdir=cover --missing tests/runtests.py
203686df2c6d Added a makefile target for coverage analysis of the unit tests (called coverage).
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 731
diff changeset
86
1920
b06ef2a53efa 'make pylint', fixed lots of minor stuff found by pylint (and there is still lots left to do)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
87 pylint:
3175
2a3a6cb34e45 pylint findings: fix some harmless stuff
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2981
diff changeset
88 @pylint --disable-msg=W0142,W0511,W0612,W0613,C0103,C0111,C0302,C0321,C0322 --disable-msg-cat=R MoinMoin
886
203686df2c6d Added a makefile target for coverage analysis of the unit tests (called coverage).
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 731
diff changeset
89
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
90 clean: clean-testwiki clean-pyc
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
91 rm -rf build
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
92
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
93 clean-testwiki:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
94 rm -rf $(testwiki)/*
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
95
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
96 clean-pyc:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
97 find . -name "*.pyc" -exec rm -rf "{}" \;
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
98
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
99 .PHONY: all dist install-docs check-tabs epydoc underlay patchlevel \
597
16519af337fe remove some references to tla
tw@waldmann-edv.de
parents: 596
diff changeset
100 check-i18n update update-underlay test testwiki clean \
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
101 clean-testwiki clean-pyc
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
102