diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-12 12:06:02 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-12 12:06:02 -0500 |
commit | a5aa05c051316ae068b37e933bda648945dfc855 (patch) | |
tree | 8c06939359973a4466fe7a773c8c3222b6a8445e | |
parent | c55a3e4d487d38144d24f8e6180d32040acbfa5d (diff) | |
download | cmake-a5aa05c051316ae068b37e933bda648945dfc855.tar.gz |
ENH: add cygwin cpack stuff to release scripts
-rw-r--r-- | Utilities/Release/create-cmake-release.cmake | 4 | ||||
-rw-r--r-- | Utilities/Release/release_cmake.cmake | 16 |
2 files changed, 17 insertions, 3 deletions
diff --git a/Utilities/Release/create-cmake-release.cmake b/Utilities/Release/create-cmake-release.cmake index 9307f5aaca..574e6622b1 100644 --- a/Utilities/Release/create-cmake-release.cmake +++ b/Utilities/Release/create-cmake-release.cmake @@ -10,9 +10,9 @@ set(RELEASE_SCRIPTS dashsgi1_release.cmake # IRIX dashsgi1_release64.cmake # IRIX 64 vogon_release.cmake # Windows - discworld_cygwin.cmake # Cygwin + vogon_cygwin.cmake # Cygwin # r36n11_aix_release.cmake # AIX 5.3 - r15n65_aix_release.cmake # AIX 5.2 + r15n65_aix_release.cmake # AIX 5.2 ) file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh") diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake index 42b294283a..a977d1f42b 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) |