aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-01-08 15:39:27 -0800
committerGerald Combs <gerald@wireshark.org>2015-01-09 00:35:19 +0000
commit03f273a5ee780eba521a144395655ed047b65880 (patch)
tree43f9bf0002f8d9a3a432ab02cac961dd1e6fe247 /cmake
parent315cc729a8cb3a8a6b5528083c42eb944b2b4059 (diff)
downloadwireshark-03f273a5ee780eba521a144395655ed047b65880.tar.gz
wireshark-03f273a5ee780eba521a144395655ed047b65880.tar.bz2
wireshark-03f273a5ee780eba521a144395655ed047b65880.zip
HTML Help: Fix titles.
AsciiDoc converts single quotes into curly quote entities, which HTML Help doesn't support. Use sed to fixup the title string. We might want to drop HTML Help at some point. Change-Id: I0c7d3be90c0de7dbac0f1367cc6ba323c7380939 Reviewed-on: https://code.wireshark.org/review/6435 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindXSLTPROC.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/modules/FindXSLTPROC.cmake b/cmake/modules/FindXSLTPROC.cmake
index 99f860dfca..8d240704d6 100644
--- a/cmake/modules/FindXSLTPROC.cmake
+++ b/cmake/modules/FindXSLTPROC.cmake
@@ -5,6 +5,8 @@
INCLUDE(FindCygwin)
+FIND_PACKAGE(SED)
+
FIND_PROGRAM(XSLTPROC_EXECUTABLE
NAMES
xsltproc
@@ -164,6 +166,7 @@ MACRO(XML2HHP _guide _docbooksource)
set( _output_chm ${_source_base_name}.chm )
set( _output_hhp ${_source_base_name}.hhp )
set( _output_toc_hhc ${_source_base_name}-toc.hhc )
+ set( _docbook_plain_title ${_source_base_name}-plain-title.xml )
SET(_gfxdir ${_guide}_graphics)
SET(_basedir ${_guide}_chm)
@@ -174,6 +177,10 @@ MACRO(XML2HHP _guide _docbooksource)
COMMAND ${CMAKE_COMMAND} -E make_directory ${_basedir}/${_gfxdir}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${_gfxdir} ${_basedir}/${_gfxdir}
COMMAND ${CMAKE_COMMAND} -E copy_directory common_graphics ${_basedir}
+ COMMAND ${SED_EXECUTABLE}
+ -e "s|er&#8217;s Guide</title>|er's Guide</title>|"
+ < ${_docbooksource}
+ > ${_docbook_plain_title}
COMMAND ${XSLTPROC_EXECUTABLE}
--path "${CMAKE_CURRENT_SOURCE_DIR}:${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_CURRENT_BINARY_DIR}/wsluarm_src"
--stringparam base.dir ${_basedir}/
@@ -183,7 +190,7 @@ MACRO(XML2HHP _guide _docbooksource)
${_common_xsltproc_args}
--stringparam admon.graphics.path ${_gfxdir}/
--nonet custom_layer_chm.xsl
- ${_docbooksource}
+ ${_docbook_plain_title}
DEPENDS
${_docbooksource}
)