This is an automated email from the ASF dual-hosted git repository. echobravo pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push: new cadf552 Exclude build directory etc from source distribution ... (#331) cadf552 is described below commit cadf5522f43cd8d5cfd132f1451a507a03fca381 Author: Blake Bender <ekalbred...@hotmail.com> AuthorDate: Tue Aug 14 21:42:41 2018 +0000 Exclude build directory etc from source distribution ... (#331) * Exclude build directory etc from source distribution generated by CPack. Ignore .git and .idea (and .DS_Store) * use .gitignore as base list for cpack exclusion. Add '.cpackignore' file to add things that git wants but cpack doesn't. Co-authored-by: Ernest Burghardt <eburgha...@pivotal.io> --- .cpackignore | 5 +++++ CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.cpackignore b/.cpackignore new file mode 100644 index 0000000..8f18540 --- /dev/null +++ b/.cpackignore @@ -0,0 +1,5 @@ +/docker/ +/packer/ +/.git/ +/.DS_Store + diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df6632..e4d526f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,6 +109,20 @@ set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/dist/LICENSE") set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}") set(CPACK_GENERATOR TGZ;ZIP) +# Build a comprehensive list of things to leave out of the cpack package for our +# source code releases. Use .gitignore as a base, then use '.cpackignore' to +# leave out .git and a couple other items we want in the repository but not in +# the release. Everything gets concatenated into a ';' separated list for +# cpack. +file(READ ".gitignore" IGNORED_PARTIAL) +set(IGNORED_FULL ${IGNORED_PARTIAL}) +file(READ ".cpackignore" IGNORED_PARTIAL) +string(CONCAT IGNORED_FULL ${IGNORED_FULL} ${IGNORED_PARTIAL}) +string(REGEX REPLACE "\n" ";" IGNORED_FULL "${IGNORED_FULL}") +string(REGEX REPLACE " " "" IGNORED_FULL "${IGNORED_FULL}") + +list(APPEND CPACK_SOURCE_IGNORE_FILES ${IGNORED_FULL}) + option(ENABLE_CLANG_TIDY "Enable clang-tidy checks." false) if(ENABLE_CLANG_TIDY) find_program(CLANG_TIDY "clang-tidy")