Permalink
Browse files

Merge #1110 'CMake: Use DESTDIR for helptags generation.'

  • Loading branch information...
jszakmeister committed Aug 23, 2014
2 parents 866d547 + bbaf699 commit ae1788d55d5f465891e1b72f7d49101b96e8b013
Showing with 7 additions and 2 deletions.
  1. +7 −2 cmake/GenerateHelptags.cmake
@@ -1,12 +1,17 @@
message(STATUS "Generating helptags.")
file(TO_CMAKE_PATH
"$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
HELPTAGS_WORKING_DIRECTORY)

message(STATUS "Generating helptags in ${HELPTAGS_WORKING_DIRECTORY}.")

execute_process(
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/bin/nvim"
-u NONE
-esX
-c "helptags ++t ."
-c quit
WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}/share/nvim/runtime/doc"
WORKING_DIRECTORY "${HELPTAGS_WORKING_DIRECTORY}"
OUTPUT_VARIABLE err
ERROR_VARIABLE err
RESULT_VARIABLE res)

0 comments on commit ae1788d

Please sign in to comment.