.gitattributes | 5 +++++ CMakeLists.txt | 9 +++++++++ 2 files changed, 14 insertions(+)
New commits: commit a22cd0badbc177f8a2eedb0386895ddf3379c618 Author: Albert Astals Cid <[email protected]> Date: Sun Sep 3 23:35:08 2017 +0200 Initial make dist support in cmake diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..9b35155c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +.gitattributes export-ignore +.gitignore export-ignore +*/.gitignore export-ignore +*/*/.gitignore export-ignore +regtest export-ignore diff --git a/CMakeLists.txt b/CMakeLists.txt index a5b0a5be..defb215f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -824,3 +824,12 @@ endif() if(NOT HAVE_JPX_DECODER) message("Warning: You're not compiling any JPX decoder. Some files will fail to display properly.") endif() + +set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${POPPLER_VERSION}) +add_custom_target(dist + COMMAND + COMMAND git log --stat | fmt --split-only > ${CMAKE_BINARY_DIR}/ChangeLog + COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar + COMMAND tar -C ${CMAKE_BINARY_DIR} -rf ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar ChangeLog --transform='s,,${ARCHIVE_NAME}/,' + COMMAND xz -9 ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
