diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-09 17:49:18 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-09 17:49:18 (GMT) |
commit | 4f75fca38f0e7962337270579f48d20f70165220 (patch) | |
tree | b94464becf22431c5bd739574385765c13a794bb | |
parent | eb1e0c36cb388b2f402e1445b032505fa042f078 (diff) | |
download | CMake-4f75fca38f0e7962337270579f48d20f70165220.zip CMake-4f75fca38f0e7962337270579f48d20f70165220.tar.gz CMake-4f75fca38f0e7962337270579f48d20f70165220.tar.bz2 |
ENH: add a xterm script create script
-rw-r--r-- | Utilities/Release/create-cmake-release.cmake | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Utilities/Release/create-cmake-release.cmake b/Utilities/Release/create-cmake-release.cmake new file mode 100644 index 0000000..9dae660 --- /dev/null +++ b/Utilities/Release/create-cmake-release.cmake @@ -0,0 +1,29 @@ +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 +# hythloth_release.cmake # Linux +# muse_release.cmake # IRIX +# muse_release64.cmake # IRIX 64 +# v60n177_aix_release.cmake # AIX +) + +file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh") + +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}/${f}-${CMAKE_VERSION}.log & + xterm -geometry 80x10 -sb -sl 2000 -T ${f}-${CMAKE_VERSION}.log -e tail -f ${CMAKE_CURRENT_SOURCE_DIR}/${f}-${CMAKE_VERSION}.log&") +endforeach(f) +file(APPEND create-${CMAKE_VERSION}.sh " +echo \"ps -ef | grep ssh | grep release\" +") +execute_process(COMMAND chmod a+x create-${CMAKE_VERSION}.sh) +message("Run create-${CMAKE_VERSION}.sh") + + |