diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-01-08 15:39:27 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-01-09 00:35:19 +0000 |
commit | 03f273a5ee780eba521a144395655ed047b65880 (patch) | |
tree | 43f9bf0002f8d9a3a432ab02cac961dd1e6fe247 /cmake | |
parent | 315cc729a8cb3a8a6b5528083c42eb944b2b4059 (diff) | |
download | wireshark-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.cmake | 9 |
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’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} ) |