summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-02-28 11:12:53 +0100
committerDavid Tardon <dtardon@redhat.com>2013-02-28 12:30:50 +0100
commitcfe0fbb039e452ab75552e65474859573cb155fd (patch)
treed375f7bb209a7e6dca6b56c7a7af87d9944757df /helpcompiler
parentb12d5e12a60867531974ce6b4eca0ce653bcae7c (diff)
do not create index for shared help module
Change-Id: I83f9b99abcc952dfea924662a0db8d98efc56307
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/inc/HelpLinker.hxx2
-rw-r--r--helpcompiler/source/HelpLinker.cxx5
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;