summaryrefslogtreecommitdiff
path: root/helpcontent2/help-to-wiki.py
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@novell.com>2010-11-19 21:02:26 +0530
committerMuthu Subramanian <sumuthu@novell.com>2010-11-19 21:12:46 +0530
commit18c474d9b625e4ac1e7c3b8edd4b7262d5a86352 (patch)
tree2c0ec37ac3133e495759ecc9d0c6ab1a87474048 /helpcontent2/help-to-wiki.py
parent2f08a397554ec83e3e133627f646d71904dc0b4d (diff)
Localization support (pass the sdf file as parameter).
Diffstat (limited to 'helpcontent2/help-to-wiki.py')
-rwxr-xr-xhelpcontent2/help-to-wiki.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/helpcontent2/help-to-wiki.py b/helpcontent2/help-to-wiki.py
index 59a893518a..446e02aacf 100755
--- a/helpcontent2/help-to-wiki.py
+++ b/helpcontent2/help-to-wiki.py
@@ -51,14 +51,9 @@ def create_wiki_dirs():
pass
def create_wiki_header():
- try:
- file = open( "bookmarks.h", "r" )
- file.close()
- sys.stdout.write( "bookmarks.h already exists! Ignoring...\n" )
- except:
- file = open( "bookmarks.h", "w" )
- file.write( header_template )
- file.close()
+ file = open( "bookmarks.h", "w" )
+ file.write( header_template )
+ file.close()
def create_wiki_footer():
file = open( "bookmarks.h", "a" )
@@ -75,7 +70,10 @@ print "Generating the titles..."
os.system( "python to-wiki/getalltitles.py source/text > alltitles.csv" )
print "Generating the wiki itself..."
-os.system( "python to-wiki/convall.py source/text" )
+localization = ""
+if len(sys.argv) > 1:
+ localization = sys.argv[1]
+os.system( "python to-wiki/convall.py "+localization )
# close the bookmarks.h template
create_wiki_footer()