diff options
author | Brad King <brad.king@kitware.com> | 2014-02-25 18:11:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-25 19:35:35 (GMT) |
commit | b3d85113a63e360e7552ec5332ef7b6c3162abcc (patch) | |
tree | 9b7419c5eddc36a2c3ce827b292193bd6ec6a07b /Utilities/Release/release_cmake.cmake | |
parent | 8619a4533618544b388a97b86897339efd4e2e92 (diff) | |
download | CMake-b3d85113a63e360e7552ec5332ef7b6c3162abcc.zip CMake-b3d85113a63e360e7552ec5332ef7b6c3162abcc.tar.gz CMake-b3d85113a63e360e7552ec5332ef7b6c3162abcc.tar.bz2 |
Utilities/Release: Copy pre-built docs tarball to unique name
Name the pre-built docs tarball on the remote machine according to the
release script name so that multiple tarballs going to a single remote
machine do not clobber one another.
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r-- | Utilities/Release/release_cmake.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake index 630f54f..a8772ee 100644 --- a/Utilities/Release/release_cmake.cmake +++ b/Utilities/Release/release_cmake.cmake @@ -67,14 +67,15 @@ macro(remote_command comment command) endmacro() if(CMAKE_DOC_TARBALL) - message("scp '${CMAKE_DOC_TARBALL}' '${HOST}:'") + get_filename_component(CMAKE_DOC_TARBALL_NAME "${CMAKE_DOC_TARBALL}" NAME) + string(REPLACE ".tar.gz" "-${SCRIPT_NAME}.tar.gz" CMAKE_DOC_TARBALL_STAGED "${CMAKE_DOC_TARBALL_NAME}") + message("scp '${CMAKE_DOC_TARBALL}' '${HOST}:${CMAKE_DOC_TARBALL_STAGED}'") execute_process(COMMAND - scp ${CMAKE_DOC_TARBALL} ${HOST}: + scp ${CMAKE_DOC_TARBALL} ${HOST}:${CMAKE_DOC_TARBALL_STAGED} RESULT_VARIABLE result) if(${result} GREATER 0) - message("error sending doc tarball with scp '${CMAKE_DOC_TARBALL}' '${HOST}:'") + message("error sending doc tarball with scp '${CMAKE_DOC_TARBALL}' '${HOST}:${CMAKE_DOC_TARBALL_STAGED}'") endif() - get_filename_component(CMAKE_DOC_TARBALL_NAME "${CMAKE_DOC_TARBALL}" NAME) endif() # set this so configure file will work from script mode |