diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-12 17:06:02 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-12 17:06:02 (GMT) |
commit | a5aa05c051316ae068b37e933bda648945dfc855 (patch) | |
tree | 8c06939359973a4466fe7a773c8c3222b6a8445e /Utilities/Release/release_cmake.cmake | |
parent | c55a3e4d487d38144d24f8e6180d32040acbfa5d (diff) | |
download | CMake-a5aa05c051316ae068b37e933bda648945dfc855.zip CMake-a5aa05c051316ae068b37e933bda648945dfc855.tar.gz CMake-a5aa05c051316ae068b37e933bda648945dfc855.tar.bz2 |
ENH: add cygwin cpack stuff to release scripts
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r-- | Utilities/Release/release_cmake.cmake | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake index 42b2942..a977d1f 100644 --- a/Utilities/Release/release_cmake.cmake +++ b/Utilities/Release/release_cmake.cmake @@ -101,7 +101,8 @@ foreach(gen ${generators}) endif("${gen}" STREQUAL "TBZ2") if("${gen}" MATCHES "Cygwin") set(SUFFIXES ${SUFFIXES} "*.tar.bz2") - endif("${gen}" STREQUAL "Cygwin") + set(extra_files setup.hint) + endif("${gen}" MATCHES "Cygwin") if("${gen}" STREQUAL "TZ") set(SUFFIXES ${SUFFIXES} "*.tar.Z") endif("${gen}" STREQUAL "TZ") @@ -123,3 +124,16 @@ foreach(suffix ${SUFFIXES}) message("error getting file back scp ${HOST}:${FINAL_PATH}/${PROJECT_PREFIX}${suffix} .") endif(${result} GREATER 0) endforeach(suffix) + +# if there are extra files to copy get them as well +if(extra_files) + foreach(f ${extra_files}) + message("scp ${HOST}:${FINAL_PATH}/${f} .") + execute_process(COMMAND + scp ${HOST}:${FINAL_PATH}/${f} . + RESULT_VARIABLE result) + if(${result} GREATER 0) + message("error getting file back scp ${HOST}:${FINAL_PATH}/${f} .") + endif(${result} GREATER 0) + endforeach(f) +endif(extra_files) |