create-cmake-release.cmake 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. if(NOT DEFINED CMAKE_VERSION)
  2. message(FATAL_ERROR "CMAKE_VERSION not defined")
  3. endif(NOT DEFINED CMAKE_VERSION)
  4. set(RELEASE_SCRIPTS
  5. dashmacmini2_release.cmake # Mac Darwin universal
  6. dashsun1_release.cmake # SunOS
  7. destiny_release.cmake # HPUX
  8. magrathea_release.cmake # Linux
  9. vogon_release.cmake # Windows
  10. v20n17_aix_release.cmake # AIX 5.3
  11. vogon_cygwin.cmake # Cygwin
  12. ferrari_sgi64_release.cmake # IRIX 64
  13. ferrari_sgi_release.cmake # IRIX 64
  14. # dashsgi1_release.cmake # IRIX
  15. # dashsgi1_release64.cmake # IRIX 64
  16. # r36n11_aix_release.cmake # AIX 5.3
  17. # r15n65_aix_release.cmake # AIX 5.2
  18. )
  19. file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh")
  20. make_directory(${CMAKE_CURRENT_SOURCE_DIR}/logs)
  21. foreach(f ${RELEASE_SCRIPTS})
  22. file(APPEND create-${CMAKE_VERSION}.sh
  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 &
  25. xterm -geometry 80x10 -sb -sl 2000 -T ${f}-${CMAKE_VERSION}.log -e tail -f ${CMAKE_CURRENT_SOURCE_DIR}/logs/${f}-${CMAKE_VERSION}.log&")
  26. endforeach(f)
  27. execute_process(COMMAND chmod a+x create-${CMAKE_VERSION}.sh)
  28. message("Run ./create-${CMAKE_VERSION}.sh")