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.
pull/432/head
Geert Janssens 8 years ago
parent 2283df719a
commit 67174dd0b1

@ -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)

Loading…
Cancel
Save