diff options
author | Brad King <brad.king@kitware.com> | 2020-09-17 13:10:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-17 13:11:03 (GMT) |
commit | 6a88e6332f1b31c337f8a7ddb73b1cf8c782f35e (patch) | |
tree | 20ce0acbf5a837a3e182375c7a202b238b60b8ae /Utilities/Release/create-cmake-release.cmake | |
parent | bdc752e3d5db06630e0795c5c0806260e0cce4cb (diff) | |
download | CMake-6a88e6332f1b31c337f8a7ddb73b1cf8c782f35e.zip CMake-6a88e6332f1b31c337f8a7ddb73b1cf8c782f35e.tar.gz CMake-6a88e6332f1b31c337f8a7ddb73b1cf8c782f35e.tar.bz2 |
Utilities/Release: Drop now-unused scripts
Since these commits:
* commit ab2276e6b9 (Utilities/Release: remove old macOS release script,
2020-09-16)
* commit 7670ba8b0a (Utilities/Release: Drop win{32,64} scripts in favor
of docker build, 2020-05-05, v3.18.0-rc1~203^2)
* commit 689fdbfc61 (Utilities/Release: Drop linux64 script in favor of
docker build, 2019-08-27, v3.16.0-rc1~184^2)
several scripts we once used for producing release binaries for
distribution on `cmake.org` are no longer needed.
Diffstat (limited to 'Utilities/Release/create-cmake-release.cmake')
-rw-r--r-- | Utilities/Release/create-cmake-release.cmake | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Utilities/Release/create-cmake-release.cmake b/Utilities/Release/create-cmake-release.cmake deleted file mode 100644 index 562df91..0000000 --- a/Utilities/Release/create-cmake-release.cmake +++ /dev/null @@ -1,52 +0,0 @@ -if(NOT DEFINED CMAKE_CREATE_VERSION) - set(CMAKE_CREATE_VERSION "release") - message("Using default value of 'release' for CMAKE_CREATE_VERSION") -endif() - -file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/logs) - -function(write_rel_shell_script filename script) - file(WRITE ${filename} "#!/usr/bin/env bash -\"${CMAKE_COMMAND}\" -DCMAKE_CREATE_VERSION=${CMAKE_CREATE_VERSION} -DCMAKE_DOC_TARBALL=\"${CMAKE_DOC_TARBALL}\" -P \"${CMAKE_CURRENT_LIST_DIR}/${script}.cmake\" < /dev/null 2>&1 | tee \"${CMAKE_CURRENT_SOURCE_DIR}/logs/${script}-${CMAKE_CREATE_VERSION}.log\" -") - execute_process(COMMAND chmod a+x ${filename}) -endfunction() - -function(write_docs_shell_script filename) - find_program(SPHINX_EXECUTABLE - NAMES sphinx-build sphinx-build.py - DOC "Sphinx Documentation Builder (sphinx-doc.org)" - ) - if(NOT SPHINX_EXECUTABLE) - message(FATAL_ERROR "SPHINX_EXECUTABLE (sphinx-build) is not found!") - endif() - - set(name cmake-${CMAKE_CREATE_VERSION}-docs) - file(WRITE "${filename}" "#!/usr/bin/env bash - -name=${name} && -inst=\"\$PWD/\$name\" -(GIT_WORK_TREE=x git archive --prefix=\${name}-src/ ${CMAKE_CREATE_VERSION}) | tar x && -rm -rf \${name}-build && -mkdir \${name}-build && -cd \${name}-build && -\"${CMAKE_COMMAND}\" ../\${name}-src/Utilities/Sphinx \\ - -DCMAKE_INSTALL_PREFIX=\"\$inst/\" \\ - -DCMAKE_DOC_DIR=doc/cmake \\ - -DSPHINX_EXECUTABLE=\"${SPHINX_EXECUTABLE}\" \\ - -DSPHINX_HTML=ON -DSPHINX_MAN=ON -DSPHINX_QTHELP=ON && -make install && -cd .. && -tar czf \${name}.tar.gz \${name} || -echo 'Failed to create \${name}.tar.gz' -") - execute_process(COMMAND chmod a+x ${filename}) - set(CMAKE_DOC_TARBALL "${name}.tar.gz" PARENT_SCOPE) -endfunction() - -write_docs_shell_script("create-${CMAKE_CREATE_VERSION}-docs.sh") - -message("Build docs first and then build for each platform: - ./create-${CMAKE_CREATE_VERSION}-docs.sh && - echo done -") |