summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-14 14:03:45 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-14 14:03:45 +0200
commitcbe3a26c92cc7e2269a2c2a5ab092870a964afb4 (patch)
tree69e9e67359cdd5cce125109cc7dcaa83b3bbec15 /cmake
parent6a19f26dc9326e7c42b801bd4260172c4f720fcc (diff)
cmake: remove tarball generation support
It messed up permissions on cygwin, making tarballs unusable on other systems.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-tarball.cmake26
-rw-r--r--cmake/tarball.cmake8
2 files changed, 0 insertions, 34 deletions
diff --git a/cmake/opentrack-tarball.cmake b/cmake/opentrack-tarball.cmake
deleted file mode 100644
index fc8ffde4..00000000
--- a/cmake/opentrack-tarball.cmake
+++ /dev/null
@@ -1,26 +0,0 @@
-string(TIMESTAMP filename-date "%Y%m%d")
-set(filename-ostype ${CMAKE_SYSTEM_NAME})
-
-get_git_head_revision(filename-branch_0 filename-hash_0)
-if(filename-hash_0)
- string(SUBSTRING "${filename-hash_0}" 0 7 filename-hash)
-endif()
-string(REPLACE "refs/heads/" "" filename-branch_1 "${filename-branch_0}")
-string(REPLACE "/" "-" filename-branch "${filename-branch_1}")
-set(filename_0 "${OPENTRACK_COMMIT}")
-set(filename_1)
-if (NOT OPENTRACK_TAG_EXACT STREQUAL OPENTRACK_COMMIT)
- string(TIMESTAMP filename_1 "-%Y%m%d%H%M%S")
-endif()
-if (NOT filename-branch STREQUAL "unstable")
- string(CONCAT filename_0 ${filename_0} "-" ${filename-branch})
-endif()
-set(filename "${CMAKE_BINARY_DIR}/${filename_0}${filename_1}.zip")
-
-add_custom_target(tarball-real)
-add_custom_target(tarball-real2)
-add_custom_command(TARGET tarball-real COMMAND cmake -P ${CMAKE_SOURCE_DIR}/cmake/tarball.cmake)
-
-add_custom_command(TARGET tarball-real2 COMMAND sh
- "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}")
-add_custom_target(tarball DEPENDS tarball-real)
diff --git a/cmake/tarball.cmake b/cmake/tarball.cmake
deleted file mode 100644
index 5761e24a..00000000
--- a/cmake/tarball.cmake
+++ /dev/null
@@ -1,8 +0,0 @@
-execute_process(COMMAND cmake ${CMAKE_BINARY_DIR} RESULT_VARIABLE ret)
-if(NOT ret EQUAL 0)
- message(FATAL_ERROR "can't regen")
-endif()
-execute_process(COMMAND cmake --build ${CMAKE_BINARY_DIR} --target tarball-real2)
-if(NOT ret EQUAL 0)
- message(FATAL_ERROR "can't make tarball")
-endif()