ENH: better release support

This commit is contained in:
Ken Martin 2005-07-05 12:38:25 -04:00
parent 3a5e24ff7c
commit 5212f448df
2 changed files with 43 additions and 26 deletions

View File

@ -13,30 +13,39 @@ SET (SCPID "kitware@public.kitware.com")
# CVSROOT setting used to check out CMake. # CVSROOT setting used to check out CMake.
SET (CVSROOT ":pserver:anoncvs@www.cmake.org:/cvsroot/CMake") SET (CVSROOT ":pserver:anoncvs@www.cmake.org:/cvsroot/CMake")
# build the NSI #########################################################################
EXEC_PROGRAM("@NSIS_MAKENSIS@" # build the NSI if requested
ARGS "@PROJECT_BINARY_DIR@/Utilities/Release/@PROJECT_NAME@.nsi" #########################################################################
) IF (BUILD_NSIW)
EXEC_PROGRAM("@NSIS_MAKENSIS@"
ARGS "@PROJECT_BINARY_DIR@/Utilities/Release/@PROJECT_NAME@.nsi"
)
# copy the NSI to the FTP site
EXEC_PROGRAM(scp
ARGS cmake-${VERSION}-win32.exe
${SCPID}:/projects/FTP/pub/cmake/v@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@
)
ENDIF (BUILD_NSIW)
# copy the NSI to the FTP site #########################################################################
EXEC_PROGRAM(scp # tag the tree if requested
ARGS cmake-${VERSION}-win32.exe #########################################################################
${SCPID}:/projects/FTP/pub/cmake/v@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@ IF (TAG_TREE)
) EXEC_PROGRAM(cvs "@PROJECT_SOURCE_DIR@"
ARGS tag -F ${TAG})
# tag the tree ENDIF (TAG_TREE)
EXEC_PROGRAM(cvs "@PROJECT_SOURCE_DIR@"
ARGS tag -F ${TAG})
#########################################################################
# build the winzip src file and copy it over # build the winzip src file and copy it over
EXEC_PROGRAM(rm C:/ #########################################################################
ARGS -rf @PROJECT_NAME@ IF (BUILD_WINZIP)
) EXEC_PROGRAM(rm C:/ ARGS -rf @PROJECT_NAME@ )
EXEC_PROGRAM(cvs C:/ EXEC_PROGRAM(cvs C:/
ARGS -d ${CVSROOT} export -r ${TAG} @PROJECT_NAME@) ARGS -d ${CVSROOT} export -r ${TAG} @PROJECT_NAME@)
EXEC_PROGRAM("@WINZIP_WZZIP@" "C:/@PROJECT_NAME@" EXEC_PROGRAM("@WINZIP_WZZIP@" "C:/@PROJECT_NAME@"
ARGS -r -P cmake-${VERSION}.zip) ARGS -r -P cmake-${VERSION}.zip)
EXEC_PROGRAM(scp "C:/@PROJECT_NAME@" EXEC_PROGRAM(scp "C:/@PROJECT_NAME@"
ARGS cmake-${VERSION}.zip ARGS cmake-${VERSION}.zip
${SCPID}:/projects/FTP/pub/cmake/v@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@ ${SCPID}:/projects/FTP/pub/cmake/v@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@
) )
ENDIF (BUILD_WINZIP)

View File

@ -63,7 +63,15 @@ ENDIF(WIN32)
IF (NSIS_MAKENSIS AND WINZIP_WZZIP) IF (NSIS_MAKENSIS AND WINZIP_WZZIP)
# build the NSI # build the NSI
ADD_CUSTOM_TARGET( release ADD_CUSTOM_TARGET( release
${CMAKE_COMMAND} -P ${CMAKE_COMMAND} -DBUILD_NSIW=1 -DTAG_TREE=1 -DBUILD_WINZIP=1
${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake -P ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake
)
ADD_CUSTOM_TARGET( release_nsiw
${CMAKE_COMMAND} -DBUILD_NSIW=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) ENDIF (NSIS_MAKENSIS AND WINZIP_WZZIP)