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

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
9
  magrathea_release.cmake     # Linux
Bill Hoffman's avatar
Bill Hoffman committed
10
  vogon_release.cmake         # Windows
Bill Hoffman's avatar
Bill Hoffman committed
11
  v20n17_aix_release.cmake    # AIX 5.3
12
  vogon_cygwin.cmake          # Cygwin
13
14
15
16
  ferrari_sgi64_release.cmake # IRIX 64
  ferrari_sgi_release.cmake   # IRIX 64
#  dashsgi1_release.cmake      # IRIX
#  dashsgi1_release64.cmake    # IRIX 64
Bill Hoffman's avatar
Bill Hoffman committed
17
#  r36n11_aix_release.cmake    # AIX 5.3
18
#  r15n65_aix_release.cmake    # AIX 5.2
19
20
)

21
file(WRITE create-${CMAKE_CREATE_VERSION}.sh "#!/bin/sh")
Bill Hoffman's avatar
Bill Hoffman committed
22
make_directory(${CMAKE_CURRENT_SOURCE_DIR}/logs)
23
24

foreach(f ${RELEASE_SCRIPTS})
25
  file(APPEND create-${CMAKE_CREATE_VERSION}.sh
26
    "
27
28
${CMAKE_COMMAND} -DCMAKE_CREATE_VERSION=${CMAKE_CREATE_VERSION} -P ${CMAKE_ROOT}/Utilities/Release/${f} < /dev/null >& ${CMAKE_CURRENT_SOURCE_DIR}/logs/${f}-${CMAKE_CREATE_VERSION}.log &
 xterm -geometry 80x10 -sb -sl 2000 -T ${f}-${CMAKE_CREATE_VERSION}.log -e tail -f  ${CMAKE_CURRENT_SOURCE_DIR}/logs/${f}-${CMAKE_CREATE_VERSION}.log&")
29
endforeach(f)
30
31
execute_process(COMMAND chmod a+x create-${CMAKE_CREATE_VERSION}.sh)
message("Run ./create-${CMAKE_CREATE_VERSION}.sh")
32
33