The branch, master has been updated
via 8192a7a0058218095f0ea8abbe8f56e574245a56 (commit)
from cf902cadb87cc6f75ae92c2dc64742555dd4f0f0 (commit)
- Log -----------------------------------------------------------------
commit 8192a7a0058218095f0ea8abbe8f56e574245a56
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Tue May 5 11:00:18 2015 +0200
Add git based 'make dist' target
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4505940..7277cdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,13 @@ set(CPACK_SOURCE_GENERATOR TGZ)
set(CPACK_SOURCE_IGNORE_FILES "~$;\\\\.git;build;build-rpm")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION}")
+# "make dist" target
+set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${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})
+
# Find external packages
include(FindPkgConfig)
hooks/post-receive
--
C++ inter-process communication library
--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|