ENH: a start on UNIX release

This commit is contained in:
Ken Martin 2005-07-05 16:13:21 -04:00
parent aa02ba52b8
commit 17d1bd1d53
2 changed files with 31 additions and 8 deletions

View File

@ -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)

View File

@ -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
)