diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-23 11:27:27 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-23 11:37:43 -0300 |
commit | 61ce86f9fa8865161a1a3b06f0b2b88760be224b (patch) | |
tree | 639d91ae45a21d6bc673101e4823f5a11ba6875c /CMakeLists.txt | |
parent | 8d0ae81d99aaab95bae609bd56c7692e9ccdea0b (diff) |
Changed routine to build source packages.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d7bfd8b23..2abd92a15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,9 +56,13 @@ add_custom_target(uninstall "${CMAKE_COMMAND}" set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${BINDING_API_VERSION}) add_custom_target(dist - COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD - | bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2 - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + COMMAND mkdir -p "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}" && + git log > "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}/ChangeLog" && + git archive --prefix=${ARCHIVE_NAME}/ HEAD --format=tar -o "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar" && + tar -C "${CMAKE_BINARY_DIR}" --owner=root --group=root -r "${ARCHIVE_NAME}/ChangeLog" -f "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar" && + bzip2 -f9 "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar" && + echo "Source package created at ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2.\n" + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; \\ |