From a5aa05c051316ae068b37e933bda648945dfc855 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 12 Feb 2007 12:06:02 -0500 Subject: ENH: add cygwin cpack stuff to release scripts --- Utilities/Release/create-cmake-release.cmake | 4 ++-- 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 9307f5a..574e662 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 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) -- cgit v0.12