2009-01-27 18:34:14 +03:00
|
|
|
if(NOT DEFINED CMAKE_CREATE_VERSION)
|
|
|
|
message(FATAL_ERROR "CMAKE_CREATE_VERSION not defined")
|
|
|
|
endif(NOT DEFINED CMAKE_CREATE_VERSION)
|
2006-05-09 21:49:18 +04:00
|
|
|
|
|
|
|
set(RELEASE_SCRIPTS
|
2006-05-09 22:14:47 +04:00
|
|
|
dashmacmini2_release.cmake # Mac Darwin universal
|
|
|
|
dashsun1_release.cmake # SunOS
|
2006-05-09 21:49:18 +04:00
|
|
|
destiny_release.cmake # HPUX
|
2007-09-10 18:49:05 +04:00
|
|
|
magrathea_release.cmake # Linux
|
2010-01-29 00:48:20 +03:00
|
|
|
dash2win64_release.cmake # Windows
|
2008-03-07 22:03:31 +03:00
|
|
|
v20n17_aix_release.cmake # AIX 5.3
|
2010-01-29 00:48:20 +03:00
|
|
|
# vogon_cygwin.cmake # Cygwin
|
2008-08-19 21:59:44 +04:00
|
|
|
ferrari_sgi64_release.cmake # IRIX 64
|
|
|
|
ferrari_sgi_release.cmake # IRIX 64
|
2008-03-07 22:03:31 +03:00
|
|
|
# r36n11_aix_release.cmake # AIX 5.3
|
2007-09-10 18:49:05 +04:00
|
|
|
# r15n65_aix_release.cmake # AIX 5.2
|
2006-05-09 21:49:18 +04:00
|
|
|
)
|
|
|
|
|
2010-01-29 00:48:20 +03:00
|
|
|
file(WRITE create-${CMAKE_CREATE_VERSION}.sh "#!/bin/bash")
|
2006-05-11 00:43:44 +04:00
|
|
|
make_directory(${CMAKE_CURRENT_SOURCE_DIR}/logs)
|
2006-05-09 21:49:18 +04:00
|
|
|
|
|
|
|
foreach(f ${RELEASE_SCRIPTS})
|
2009-01-27 18:34:14 +03:00
|
|
|
file(APPEND create-${CMAKE_CREATE_VERSION}.sh
|
2006-05-09 21:49:18 +04:00
|
|
|
"
|
2009-01-27 18:34:14 +03:00
|
|
|
${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&")
|
2006-05-09 21:49:18 +04:00
|
|
|
endforeach(f)
|
2009-01-27 18:34:14 +03:00
|
|
|
execute_process(COMMAND chmod a+x create-${CMAKE_CREATE_VERSION}.sh)
|
|
|
|
message("Run ./create-${CMAKE_CREATE_VERSION}.sh")
|
2006-05-09 21:49:18 +04:00
|
|
|
|
|
|
|
|