ENH: add cygwin cpack stuff to release scripts
This commit is contained in:
parent
c55a3e4d48
commit
a5aa05c051
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue