Skip to content

Commit

Permalink
Partially reverted code that was commented in error.
Browse files Browse the repository at this point in the history
  • Loading branch information
end2endzone committed Sep 15, 2020
1 parent 08f21fb commit cb6b893
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,25 +223,25 @@ endif()
set (README_FILENAME README.md)
set (USERMANUAL_FILENAME UserManual.md)

# if (GRIP_FOUND)
# # Convert README.md
# execute_process(COMMAND grip README.md --export README.html --user-content --context=end2endzone/ShellAnything RESULT_VARIABLE res_var WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# if("${res_var}" STREQUAL "0")
# set (README_FILENAME README.html)
# else()
# message(FATAL_ERROR "grip failed converting README.md with res_var='${res_var}'")
# endif()
#
# # Convert UserManual.md
# execute_process(COMMAND grip UserManual.md --export UserManual.html --user-content --context=end2endzone/ShellAnything RESULT_VARIABLE res_var WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# if("${res_var}" STREQUAL "0")
# set (USERMANUAL_FILENAME UserManual.html)
# else()
# message(FATAL_ERROR "grip failed converting UserManual.md with res_var='${res_var}'")
# endif()
# else()
# message(WARNING "grip is not found on the system. grip is required for publishing markdown files to html. Files will be published as *.md files.")
# endif()
if (GRIP_FOUND)
# Convert README.md
execute_process(COMMAND grip README.md --export README.html --user-content --context=end2endzone/ShellAnything RESULT_VARIABLE res_var WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if("${res_var}" STREQUAL "0")
set (README_FILENAME README.html)
else()
message(FATAL_ERROR "grip failed converting README.md with res_var='${res_var}'")
endif()

# Convert UserManual.md
execute_process(COMMAND grip UserManual.md --export UserManual.html --user-content --context=end2endzone/ShellAnything RESULT_VARIABLE res_var WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if("${res_var}" STREQUAL "0")
set (USERMANUAL_FILENAME UserManual.html)
else()
message(FATAL_ERROR "grip failed converting UserManual.md with res_var='${res_var}'")
endif()
else()
message(WARNING "grip is not found on the system. grip is required for publishing markdown files to html. Files will be published as *.md files.")
endif()


##############################################################################################################################################
Expand Down

0 comments on commit cb6b893

Please sign in to comment.