[geos-commits] [SCM] GEOS branch make-dist created. a88d1fd5c43f80cd1d7b7b551ebced966f2bba3a

git at osgeo.org git at osgeo.org
Fri Oct 19 11:08:57 PDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, make-dist has been created
        at  a88d1fd5c43f80cd1d7b7b551ebced966f2bba3a (commit)

- Log -----------------------------------------------------------------
commit a88d1fd5c43f80cd1d7b7b551ebced966f2bba3a
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Oct 19 11:07:52 2018 -0700

    Add a 'make dist' target that bundles up all sources in to a tar.bz2

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 772d688..d171248 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -332,6 +332,23 @@ configure_file("${PROJECT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
 add_custom_target(uninstall
   "${CMAKE_COMMAND}" -P "${PROJECT_BINARY_DIR}/cmake/cmake_uninstall.cmake")
 
+
+#################################################################################
+# Package source code
+#################################################################################
+set(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
+set(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
+set(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
+set(CPACK_SOURCE_GENERATOR "TBZ2")
+set(CPACK_SOURCE_PACKAGE_FILE_NAME
+  "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+set(CPACK_SOURCE_IGNORE_FILES
+  "/build/;/.git/;/autom4te.cache/;~$;${CPACK_SOURCE_IGNORE_FILES}")
+include(CPack)
+# Alias for 'make dist'
+add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
+
+
 #################################################################################
 # DEBUG settings - TODO: make a summary
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list