diff options
author | Brad King <brad.king@kitware.com> | 2014-01-28 15:41:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-01-29 15:10:15 (GMT) |
commit | ef7a1b41445f11bd05331a2a1d9d7fb44c1aa7d8 (patch) | |
tree | 32e36d63f20152f66eea84a8d6c805081fa5e593 /Utilities/Release/release_cmake.cmake | |
parent | 174314e08a73011fe0115dde9932bc8e2fd6ebc9 (diff) | |
download | CMake-ef7a1b41445f11bd05331a2a1d9d7fb44c1aa7d8.zip CMake-ef7a1b41445f11bd05331a2a1d9d7fb44c1aa7d8.tar.gz CMake-ef7a1b41445f11bd05331a2a1d9d7fb44c1aa7d8.tar.bz2 |
Utilities/Release: Pass pre-built docs tarball
Avoid requiring all build machines for the upstream packaging process to
have Python and Sphinx installed. Instead create a way to build the
documentation once on the host machine and copy it to each build machine
as a tarball with content to include in the installation tree for
packaging.
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r-- | Utilities/Release/release_cmake.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake index f351ac8..630f54f 100644 --- a/Utilities/Release/release_cmake.cmake +++ b/Utilities/Release/release_cmake.cmake @@ -66,6 +66,17 @@ macro(remote_command comment command) endif() endmacro() +if(CMAKE_DOC_TARBALL) + message("scp '${CMAKE_DOC_TARBALL}' '${HOST}:'") + execute_process(COMMAND + scp ${CMAKE_DOC_TARBALL} ${HOST}: + RESULT_VARIABLE result) + if(${result} GREATER 0) + message("error sending doc tarball with scp '${CMAKE_DOC_TARBALL}' '${HOST}:'") + endif() + get_filename_component(CMAKE_DOC_TARBALL_NAME "${CMAKE_DOC_TARBALL}" NAME) +endif() + # set this so configure file will work from script mode # create the script specific for the given host set(SCRIPT_FILE release_cmake-${SCRIPT_NAME}.sh) |