make dist creates the archive with the current time, not the git time

This commit is contained in:
louiz’
2016-09-17 01:08:32 +02:00
parent aaa2ca670a
commit f8112468a7
+1 -1
View File
@@ -247,7 +247,7 @@ install(FILES conf/biboumi.cfg DESTINATION /etc/bib
## Generate a release tarball from the git sources ## Generate a release tarball from the git sources
# #
add_custom_command(OUTPUT ${ARCHIVE_NAME}.tar.xz add_custom_command(OUTPUT ${ARCHIVE_NAME}.tar.xz
COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar HEAD COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar HEAD^{tree}
> ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar > ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar
# Append this specific file that is not part of the git repo # Append this specific file that is not part of the git repo
COMMAND tar -rf ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar -P ${SOURCE_DIR}/single_include/catch.hpp --xform 's|/.*/|${ARCHIVE_NAME}/tests/|g' COMMAND tar -rf ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar -P ${SOURCE_DIR}/single_include/catch.hpp --xform 's|/.*/|${ARCHIVE_NAME}/tests/|g'