Added Make targets for PDF and HTML generation.
This commit is contained in:
@ -48,7 +48,7 @@ MaxScale has added the ability to bind a listener for a service to a network add
|
||||
|
||||
The server version reported when connected to a database via MaxScale has now been altered. This now shows the MaxScale name and version together with the backend server name. An example of this can be seen below for the 0.5 release.
|
||||
|
||||
-bash-4.1$ mysql -h 127.0.0.1 -P 4006 -uxxxx -pxxxx
|
||||
-bash-4.1$ mysql -h 127.0.0.1 -P 4006 -uxxxx -pxxxx
|
||||
Welcome to the MariaDB monitor. Commands end with ; or \\g.
|
||||
Your MySQL connection id is 22320
|
||||
Server version: MaxScale 0.5.0 MariaDB Server
|
||||
|
18
Documentation/generate-html.cmake
Normal file
18
Documentation/generate-html.cmake
Normal file
@ -0,0 +1,18 @@
|
||||
# The BUILD_DIR variable is set at runtime
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/")
|
||||
find_package(Pandoc)
|
||||
|
||||
if(PANDOC_FOUND AND BUILD_DIR)
|
||||
file(MAKE_DIRECTORY ${BUILD_DIR}/html)
|
||||
file(GLOB_RECURSE MARKDOWN *.md)
|
||||
foreach(VAR ${MARKDOWN})
|
||||
string(REPLACE ".md" ".html" OUTPUT ${VAR})
|
||||
get_filename_component(DIR ${VAR} DIRECTORY)
|
||||
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}" "${BUILD_DIR}/html" FILE ${OUTPUT})
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${DIR} ${PANDOC_EXECUTABLE} ${VAR} -o ${OUTPUT})
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${OUTPUT} ${FILE})
|
||||
endforeach()
|
||||
endif()
|
18
Documentation/generate-pdf.cmake
Normal file
18
Documentation/generate-pdf.cmake
Normal file
@ -0,0 +1,18 @@
|
||||
# The BUILD_DIR variable is set at runtime
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/")
|
||||
find_package(Pandoc)
|
||||
|
||||
if(PANDOC_FOUND AND BUILD_DIR)
|
||||
file(MAKE_DIRECTORY ${BUILD_DIR}/pdf)
|
||||
file(GLOB_RECURSE MARKDOWN *.md)
|
||||
foreach(VAR ${MARKDOWN})
|
||||
string(REPLACE ".md" ".pdf" OUTPUT ${VAR})
|
||||
get_filename_component(DIR ${VAR} DIRECTORY)
|
||||
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}" "${BUILD_DIR}/pdf" FILE ${OUTPUT})
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${DIR} ${PANDOC_EXECUTABLE} ${VAR} -o ${OUTPUT})
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${OUTPUT} ${FILE})
|
||||
endforeach()
|
||||
endif()
|
Reference in New Issue
Block a user