mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Prevent temporary editor files from being picked up for POTFILES.in generation
Aparently cmake's file glob also picks up hidden files and doesn't have an easy way to avoid that.
This commit is contained in:
@@ -88,7 +88,11 @@ function(make_gnucash_potfiles)
|
||||
foreach (path ${FILES_IN})
|
||||
if (${path} MATCHES "^(bindings/|borrowed/|common/|doc/|libgnucash/|gnucash/)"
|
||||
AND
|
||||
NOT ${path} MATCHES "gw-|test|experimental|python-bindings|swig-.*\\.c")
|
||||
NOT ${path} MATCHES "gw-|test|experimental|python-bindings|swig-.*\\.c"
|
||||
# Skip POSIX style hidden files even if they have the proper extension
|
||||
# These are typically temporary files from editors like emacs
|
||||
AND
|
||||
NOT ${path} MATCHES "/[.][^/]*$")
|
||||
list (APPEND GOOD_FILES ${path})
|
||||
endif ()
|
||||
endforeach (path)
|
||||
|
||||
Reference in New Issue
Block a user