diff options
-rw-r--r-- | cmake/opentrack-tarball.cmake | 4 | ||||
-rw-r--r-- | make-tar.sh | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cmake/opentrack-tarball.cmake b/cmake/opentrack-tarball.cmake index 1f292af7..fc8ffde4 100644 --- a/cmake/opentrack-tarball.cmake +++ b/cmake/opentrack-tarball.cmake @@ -1,5 +1,6 @@ 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) @@ -21,6 +22,5 @@ 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}" "${CMAKE_BINARY_DIR}") + "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}") add_custom_target(tarball DEPENDS tarball-real) diff --git a/make-tar.sh b/make-tar.sh index 838300fc..b84561e9 100644 --- a/make-tar.sh +++ b/make-tar.sh @@ -2,7 +2,6 @@ prefix="$1" filename="$2" -bin="$3" branch="$(git rev-parse --abbrev-ref HEAD)" |