summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/create-cmake-release.cmake
blob: 574e6622b1bc6b19d15bdd2c6f72d55edaae37f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
if(NOT DEFINED CMAKE_VERSION)
  message(FATAL_ERROR "CMAKE_VERSION not defined")
endif(NOT DEFINED CMAKE_VERSION)

set(RELEASE_SCRIPTS
  dashmacmini2_release.cmake  # Mac Darwin universal
  dashsun1_release.cmake      # SunOS
  destiny_release.cmake       # HPUX
  magrathea_release.cmake      # Linux
  dashsgi1_release.cmake      # IRIX
  dashsgi1_release64.cmake    # IRIX 64
  vogon_release.cmake         # Windows
  vogon_cygwin.cmake          # Cygwin
#  r36n11_aix_release.cmake   # AIX 5.3
  r15n65_aix_release.cmake    # AIX 5.2
)

file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh")
make_directory(${CMAKE_CURRENT_SOURCE_DIR}/logs)

foreach(f ${RELEASE_SCRIPTS})
  file(APPEND create-${CMAKE_VERSION}.sh
    "
${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&")
endforeach(f)
execute_process(COMMAND chmod a+x create-${CMAKE_VERSION}.sh)
message("Run ./create-${CMAKE_VERSION}.sh")