From 17d1bd1d53643f8d89e3366000644ee9c77463da Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 5 Jul 2005 16:13:21 -0400 Subject: ENH: a start on UNIX release --- Utilities/Release/MakeRelease.cmake.in | 17 +++++++++++++++++ Utilities/Release/Release.cmake | 22 ++++++++++++++-------- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/Utilities/Release/MakeRelease.cmake.in b/Utilities/Release/MakeRelease.cmake.in index 18b766f..f45f6f9 100644 --- a/Utilities/Release/MakeRelease.cmake.in +++ b/Utilities/Release/MakeRelease.cmake.in @@ -49,3 +49,20 @@ IF (BUILD_WINZIP) ${SCPID}:/projects/FTP/pub/cmake/v@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@ ) ENDIF (BUILD_WINZIP) + +######################################################################### +# build the src tar file and copy it over +######################################################################### +IF (BUILD_TAR) + EXEC_PROGRAM(rm $ENV{HOME} ARGS -rf @PROJECT_NAME@ ) + EXEC_PROGRAM(cvs $ENV{HOME} + ARGS -d ${CVSROOT} export -r ${TAG} @PROJECT_NAME@) + EXEC_PROGRAM(tar $ENV{HOME} + ARGS -cvf cmake-${VERSION}.tar CMake) + EXEC_PROGRAM(gzip $ENV{HOME} + ARGS -f -9 cmake-${VERSION}.tar) + EXEC_PROGRAM(scp $ENV{HOME} + ARGS cmake-${VERSION}.tar.gz + ${SCPID}:/projects/FTP/pub/cmake/v@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@ + ) +ENDIF (BUILD_TAR) diff --git a/Utilities/Release/Release.cmake b/Utilities/Release/Release.cmake index b34eba0..01203f4 100644 --- a/Utilities/Release/Release.cmake +++ b/Utilities/Release/Release.cmake @@ -54,12 +54,13 @@ IF(WIN32) ${PROJECT_SOURCE_DIR}/Utilities/Release/cmake_release.sh.in ${PROJECT_BINARY_DIR}/Utilities/Release/cmake_release.sh IMMEDIATE @ONLY) - CONFIGURE_FILE( - ${PROJECT_SOURCE_DIR}/Utilities/Release/MakeRelease.cmake.in - ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake - IMMEDIATE @ONLY) ENDIF(WIN32) +CONFIGURE_FILE( + ${PROJECT_SOURCE_DIR}/Utilities/Release/MakeRelease.cmake.in + ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake + IMMEDIATE @ONLY) + IF (NSIS_MAKENSIS AND WINZIP_WZZIP) # build the NSI ADD_CUSTOM_TARGET( release @@ -70,12 +71,17 @@ IF (NSIS_MAKENSIS AND WINZIP_WZZIP) ${CMAKE_COMMAND} -DBUILD_NSIW=1 -P ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake ) - ADD_CUSTOM_TARGET( release_tag - ${CMAKE_COMMAND} -DTAG_TREE=1 - -P ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake - ) ADD_CUSTOM_TARGET( release_winzip ${CMAKE_COMMAND} -DBUILD_WINZIP=1 -P ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake ) ENDIF (NSIS_MAKENSIS AND WINZIP_WZZIP) + +ADD_CUSTOM_TARGET( release_tag + ${CMAKE_COMMAND} -DTAG_TREE=1 + -P ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake + ) +ADD_CUSTOM_TARGET( release_tar + ${CMAKE_COMMAND} -DBUILD_TAR=1 + -P ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake + ) -- cgit v0.12