summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-07-05 20:13:21 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-07-05 20:13:21 (GMT)
commit17d1bd1d53643f8d89e3366000644ee9c77463da (patch)
tree2f7347624988bd88a234627511857b5b0fd49e5d /Utilities
parentaa02ba52b834b6ae4da594093094526d9eece4a5 (diff)
downloadCMake-17d1bd1d53643f8d89e3366000644ee9c77463da.zip
CMake-17d1bd1d53643f8d89e3366000644ee9c77463da.tar.gz
CMake-17d1bd1d53643f8d89e3366000644ee9c77463da.tar.bz2
ENH: a start on UNIX release
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Release/MakeRelease.cmake.in17
-rw-r--r--Utilities/Release/Release.cmake22
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
+ )