Skip to content

Commit

Permalink
CPack: ignore other files/dirs starting with .; use verbatim option
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jun 26, 2023
1 parent afcb318 commit f9a5da2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 15 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -454,24 +454,22 @@ if(PROJECT_IS_TOP_LEVEL)
set(CPACK_PACKAGE_VERSION_MINOR ${GEOS_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${GEOS_VERSION_PATCH})
set(CPACK_SOURCE_PACKAGE_FILE_NAME "geos-${GEOS_VERSION}")

set(CPACK_VERBATIM_VARIABLES TRUE)
set(CPACK_SOURCE_IGNORE_FILES
"/\\\\.git"
"/autogen\\\\.sh"
"/tools/ci"
"/HOWTO_RELEASE"
"/autom4te\\\\.cache"
"\\\\.yml\$"
"\\\\.deps"
"/debian/"
"/php/"
"/.*build-.*/"
"cmake_install\\\\.cmake\$"
"/include/geos/version\\\\.h\$"
"/tools/geos-config\$"
"/tools/geos\\\\.pc\$"
"/bin/"
"/web/"
/\\..* # any file/directory starting with .
/.*build.*/
/autogen\\.sh
/autom4te\\.cache
/bin/
/debian/
/HOWTO_RELEASE
/include/geos/version\\.h\$
/php/
/tools/ci
/tools/geos-config\$
/tools/geos\\.pc\$
/web/
cmake_install\\.cmake\$
${CMAKE_CURRENT_BINARY_DIR}
)

Expand Down
2 changes: 1 addition & 1 deletion HOWTO_RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

$ BRANCH_NAME=main
$ git clone --depth 1 --branch $BRANCH_NAME \
https://git.osgeo.org/gitea/geos/geos.git geos-$BRANCH_NAME
https://github.com/libgeos/geos.git geos-$BRANCH_NAME
$ cd geos-$BRANCH_NAME
$ mkdir _build && cd _build
$ cmake ..
Expand Down

0 comments on commit f9a5da2

Please sign in to comment.