summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-23 16:55:46 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-23 17:21:54 -0300
commit519344814bcedf55b6e3073b80939fc8ec9370db (patch)
tree5351313de79acca69962968378f93821a02055dd
parent1cd5adbb53161e3fbe7e016ffb580c81b5ec8205 (diff)
Changed routine to create source packages.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Lauro Moura <lauto.neto@openbossa.org>
-rw-r--r--CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b4ad6768..ce621731 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,9 +75,13 @@ add_subdirectory(tests)
set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${shiboken_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})
add_dependencies(shiboken shiboken_generator)