diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-11-30 19:51:01 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-11-30 19:52:48 +0100 |
commit | d15ce0105ca8c1b7818df214714dd3adbbbca7b4 (patch) | |
tree | c9fe49793c49e1018d235147853b08a1f4bcb935 /helpcontent2/help-to-wiki.py | |
parent | 49b5213636d2775b240e3126a85ea99a6cb4e2fa (diff) |
wikihelp: Instead of bookmark.h, create wiki redirects (preparation work).
LIBREOFFICE_PRE_BOOTSTRAP_BUILD
This is more dynamic, and can be controlled by the help authors, instead of
relying on new builds when something help-related changes.
Diffstat (limited to 'helpcontent2/help-to-wiki.py')
-rwxr-xr-x | helpcontent2/help-to-wiki.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/helpcontent2/help-to-wiki.py b/helpcontent2/help-to-wiki.py index 3ceb7f8c16..7ccb5ca7e5 100755 --- a/helpcontent2/help-to-wiki.py +++ b/helpcontent2/help-to-wiki.py @@ -2,27 +2,6 @@ import sys, os -header_template = "\n\ -// This file is generated using the Wiki Converter \n\ -// Please exercise caution while modifying this file directly \n\ -#ifndef __BOOKMARKS_H__\n\ -#define __BOOKMARKS_H__\n\ -\n\ -typedef struct WIKI_LINKS_MAP {\n\ - ULONG id; // HELP ID\n\ - const char *link; // Mapped Wiki Link\n\ -} WikiLinksMap;\n\ -\n\ -static WikiLinksMap aWikiMaps[] = {\n\ -" - -footer_template = "\ - { 0, \"\" }\n\ -};\n\ -\n\ -#endif\n\ -" - # FIXME do proper modules from getalltitles & wikiconv2 # [so far this is in fact just a shell thing] @@ -50,22 +29,9 @@ def create_wiki_dirs(): except: pass -def create_wiki_header(): - file = open( "bookmarks.h", "w" ) - file.write( header_template ) - file.close() - -def create_wiki_footer(): - file = open( "bookmarks.h", "a" ) - file.write( footer_template ) - file.close() - # do the work create_wiki_dirs() -# create bookmarks.h template -create_wiki_header() - print "Generating the titles..." os.system( "python to-wiki/getalltitles.py source/text > alltitles.csv" ) @@ -75,7 +41,4 @@ if len(sys.argv) > 1: localization = sys.argv[1] os.system( "python to-wiki/wikiconv2.py "+localization ) -# close the bookmarks.h template -create_wiki_footer() - # vim:set shiftwidth=4 softtabstop=4 expandtab: |