diff options
author | David Tardon <dtardon@redhat.com> | 2013-02-28 11:12:53 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-02-28 12:30:50 +0100 |
commit | cfe0fbb039e452ab75552e65474859573cb155fd (patch) | |
tree | d375f7bb209a7e6dca6b56c7a7af87d9944757df /helpcompiler | |
parent | hack for adding err.html into shared help pack (diff) | |
download | core-cfe0fbb039e452ab75552e65474859573cb155fd.tar.gz core-cfe0fbb039e452ab75552e65474859573cb155fd.zip |
do not create index for shared help module
Change-Id: I83f9b99abcc952dfea924662a0db8d98efc56307
Diffstat (limited to 'helpcompiler')
-rw-r--r-- | helpcompiler/inc/HelpLinker.hxx | 2 | ||||
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/helpcompiler/inc/HelpLinker.hxx b/helpcompiler/inc/HelpLinker.hxx index ef4f4216f318..b7e88932fcb3 100644 --- a/helpcompiler/inc/HelpLinker.hxx +++ b/helpcompiler/inc/HelpLinker.hxx @@ -59,6 +59,7 @@ public: HelpLinker() : m_pIndexerPreProcessor(NULL) , m_bUseLangRoot(true) + , m_bCreateIndex(true) {} ~HelpLinker() { delete m_pIndexerPreProcessor; } @@ -84,6 +85,7 @@ private: fs::path indexDirParentName; IndexerPreProcessor* m_pIndexerPreProcessor; bool m_bUseLangRoot; + bool m_bCreateIndex; void initIndexerPreProcessor(); void link() throw( HelpProcessingException ); void addBookmark( FILE* pFile_DBHelp, std::string thishid, diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 0bdde1848c68..15061f30384e 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -398,6 +398,9 @@ void HelpLinker::link() throw( HelpProcessingException ) throw HelpProcessingException( HELPPROCESSING_GENERAL_ERROR, aStrStream.str() ); } + if (!m_bCreateIndex) + continue; + std::string documentPath = streamTable.document_path; if (documentPath.find("/") == 0) documentPath = documentPath.substr(1); @@ -736,6 +739,8 @@ void HelpLinker::main( std::vector<std::string> &args, } else if (args[i].compare("-nolangroot") == 0) m_bUseLangRoot = false; + else if (args[i].compare("-noindex") == 0) + m_bCreateIndex = false; else helpFiles.push_back(args[i]); ++i; |