CMake/Utilities/Release/create-cmake-release.cmake

29 lines
1.0 KiB
CMake
Raw Normal View History

2006-05-09 21:49:18 +04:00
if(NOT DEFINED CMAKE_VERSION)
message(FATAL_ERROR "CMAKE_VERSION not defined")
endif(NOT DEFINED CMAKE_VERSION)
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
2006-05-09 22:14:47 +04:00
hythloth_release.cmake # Linux
2006-05-10 22:03:51 +04:00
dashsgi1_release.cmake # IRIX
dashsgi1_release64.cmake # IRIX 64
2006-05-11 00:43:44 +04:00
vogon_release.cmake # Windows
2006-05-09 22:14:47 +04:00
v60n177_aix_release.cmake # AIX
2006-05-09 21:49:18 +04:00
)
file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh")
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})
file(APPEND create-${CMAKE_VERSION}.sh
"
2006-05-11 00:43:44 +04:00
${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&")
2006-05-09 21:49:18 +04:00
endforeach(f)
execute_process(COMMAND chmod a+x create-${CMAKE_VERSION}.sh)
2006-05-11 00:44:51 +04:00
message("Run ./create-${CMAKE_VERSION}.sh")
2006-05-09 21:49:18 +04:00