blob: 7ccb5ca7e5a2659eca49674a1879aad1d8b36240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/usr/bin/env python
import sys, os
# FIXME do proper modules from getalltitles & wikiconv2
# [so far this is in fact just a shell thing]
def create_wiki_dirs():
dirs = [
"All",
"Basic",
"Calc",
"Chart",
"Draw",
"Impress",
"Math",
"Writer"
]
try:
os.mkdir( "wiki" )
except:
sys.stdout.write( "wiki already generated - the wiki/ subdir exists\n" )
sys.exit( 1 )
for i in dirs:
try:
os.mkdir( "wiki/" + i )
except:
pass
# do the work
create_wiki_dirs()
print "Generating the titles..."
os.system( "python to-wiki/getalltitles.py source/text > alltitles.csv" )
print "Generating the wiki itself..."
localization = ""
if len(sys.argv) > 1:
localization = sys.argv[1]
os.system( "python to-wiki/wikiconv2.py "+localization )
# vim:set shiftwidth=4 softtabstop=4 expandtab:
|