diff options
author | David Cole <david.cole@kitware.com> | 2011-06-02 02:32:42 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-06-02 18:36:14 (GMT) |
commit | b43af94af1c3f80237fd9889bd5a48e02e279f17 (patch) | |
tree | 94af7860b77c56a22488335ce7d2d63000176830 /Utilities/Release/upload_release.cmake | |
parent | 8af1eaf499cb539719fa1698ea3031a70a861728 (diff) | |
download | CMake-b43af94af1c3f80237fd9889bd5a48e02e279f17.zip CMake-b43af94af1c3f80237fd9889bd5a48e02e279f17.tar.gz CMake-b43af94af1c3f80237fd9889bd5a48e02e279f17.tar.bz2 |
CMake: eliminate use of cvs in the Release scripts
Set GIT_COMMAND to "git" -- each machine involved in building
the CMake release binaries has the right "git" in the PATH.
Separate the release scripts into two batches so we can build
multiple releases on the same machine, in serial, if necessary.
We currnetly do this with the Windows and Cygwin release
binaries on dash2win64.
Sort the files to be uploaded, so that sorting them by modification
time (file copy / upload time) is equivalent to sorting them
alphabetically.
Diffstat (limited to 'Utilities/Release/upload_release.cmake')
-rw-r--r-- | Utilities/Release/upload_release.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Utilities/Release/upload_release.cmake b/Utilities/Release/upload_release.cmake index b57853c..dc6c78f 100644 --- a/Utilities/Release/upload_release.cmake +++ b/Utilities/Release/upload_release.cmake @@ -2,13 +2,16 @@ set(PROJECT_PREFIX cmake-) if(NOT VERSION) set(VERSION 2.8) endif() +set(dir "v${VERSION}") if("${VERSION}" MATCHES "master") - set(VERSION CVS) + set(dir "dev") endif() file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*") +list(SORT FILES) +list(REVERSE FILES) message("${FILES}") set(UPLOAD_LOC - "kitware@www.cmake.org:/projects/FTP/pub/cmake/v${VERSION}") + "kitware@www.cmake.org:/projects/FTP/pub/cmake/${dir}") set(count 0) foreach(file ${FILES}) if(NOT IS_DIRECTORY ${file}) @@ -19,8 +22,8 @@ foreach(file ${FILES}) math(EXPR count "${count} + 1") if("${result}" GREATER 0) message(FATAL_ERROR "failed to upload file to ${UPLOAD_LOC}") - endif("${result}" GREATER 0) - endif(NOT IS_DIRECTORY ${file}) + endif() + endif() endforeach(file) if(${count} EQUAL 0) message(FATAL_ERROR "Error no files uploaded.") |