diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-04-10 08:36:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-10 15:30:57 (GMT) |
commit | 111bb67c14e90e372be300cbbd98fa88d87a8b99 (patch) | |
tree | 4656ba50eef2ee3cf358d4fedcb436c86ddd239a /Utilities/Sphinx/fixup_qthelp_names.cmake | |
parent | 5c63c1319030222b1dbf49684ee303c5532f2a3b (diff) | |
download | CMake-111bb67c14e90e372be300cbbd98fa88d87a8b99.zip CMake-111bb67c14e90e372be300cbbd98fa88d87a8b99.tar.gz CMake-111bb67c14e90e372be300cbbd98fa88d87a8b99.tar.bz2 |
Help: Use a more-appropriate qthelp namespace and file name.
Use the namespace org.cmake instead of org.sphinx.cmake. Add the
version to the output file name.
Diffstat (limited to 'Utilities/Sphinx/fixup_qthelp_names.cmake')
-rw-r--r-- | Utilities/Sphinx/fixup_qthelp_names.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Utilities/Sphinx/fixup_qthelp_names.cmake b/Utilities/Sphinx/fixup_qthelp_names.cmake new file mode 100644 index 0000000..e35ef25 --- /dev/null +++ b/Utilities/Sphinx/fixup_qthelp_names.cmake @@ -0,0 +1,32 @@ + +file(READ "${QTHELP_DIR}/CMake.qhcp" QHCP_CONTENT) + +string(REPLACE + "<homePage>qthelp://org.sphinx.cmake" "<homePage>qthelp://org.cmake" + QHCP_CONTENT "${QHCP_CONTENT}" +) +string(REPLACE + "<startPage>qthelp://org.sphinx.cmake" "<startPage>qthelp://org.cmake" + QHCP_CONTENT "${QHCP_CONTENT}" +) + +string(REPLACE + "<output>CMake.qch" "<output>CMake-${CMake_VERSION}.qch" + QHCP_CONTENT "${QHCP_CONTENT}" +) +string(REPLACE + "<file>CMake.qch" "<file>CMake-${CMake_VERSION}.qch" + QHCP_CONTENT "${QHCP_CONTENT}" +) + +file(WRITE "${QTHELP_DIR}/CMake.qhcp" "${QHCP_CONTENT}") + + +file(READ "${QTHELP_DIR}/CMake.qhp" QHP_CONTENT) + +string(REPLACE + "<namespace>org.sphinx.cmake" "<namespace>org.cmake" + QHP_CONTENT "${QHP_CONTENT}" +) + +file(WRITE "${QTHELP_DIR}/CMake.qhp" "${QHP_CONTENT}") |