create-cmake-release.cmake 1.08 KB
Newer Older
1
2
3
4
5
if(NOT DEFINED CMAKE_VERSION)
  message(FATAL_ERROR "CMAKE_VERSION not defined")
endif(NOT DEFINED CMAKE_VERSION)

set(RELEASE_SCRIPTS
Bill Hoffman's avatar
Bill Hoffman committed
6
7
  dashmacmini2_release.cmake  # Mac Darwin universal
  dashsun1_release.cmake      # SunOS
8
  destiny_release.cmake       # HPUX
Bill Hoffman's avatar
Bill Hoffman committed
9
  magrathea_release.cmake      # Linux
Bill Hoffman's avatar
ENH:    
Bill Hoffman committed
10
11
  dashsgi1_release.cmake      # IRIX
  dashsgi1_release64.cmake    # IRIX 64
Bill Hoffman's avatar
Bill Hoffman committed
12
  vogon_release.cmake         # Windows
13
14
#  r36n11_aix_release.cmake   # AIX 5.3
  r15n65_aix_release.cmake   # AIX 5.2
15
16
17
)

file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh")
Bill Hoffman's avatar
Bill Hoffman committed
18
make_directory(${CMAKE_CURRENT_SOURCE_DIR}/logs)
19
20
21
22

foreach(f ${RELEASE_SCRIPTS})
  file(APPEND create-${CMAKE_VERSION}.sh
    "
Bill Hoffman's avatar
Bill Hoffman committed
23
24
${CMAKE_COMMAND} -DCMAKE_VERSION=${CMAKE_VERSION} -P ${CMAKE_ROOT}/Utilities/Release/${f} < /dev/null >& ${CMAKE_CURRENT_SOURCE_DIR}/logs/${f}-${CMAKE_VERSION}.log &
 xterm -geometry 80x10 -sb -sl 2000 -T ${f}-${CMAKE_VERSION}.log -e tail -f  ${CMAKE_CURRENT_SOURCE_DIR}/logs/${f}-${CMAKE_VERSION}.log&")
25
26
endforeach(f)
execute_process(COMMAND chmod a+x create-${CMAKE_VERSION}.sh)
Bill Hoffman's avatar
Bill Hoffman committed
27
message("Run ./create-${CMAKE_VERSION}.sh")
28
29