The value of the ACCUREV_IGNORE_ELEMS environment variable must be a
SPACE-separated list of filenames, pathnames, and wildcard patterns. Some examples:
The pattern manuals/*.doc matches any of these names:
However, using “**” to specify recursion as in manuals/**.doc or
manuals/**chap*.doc will match any occurence of *.doc or chap*.doc in any directory underneath any instance of a
manuals directory.
A typical application of ACCUREV_IGNORE_ELEMS is to have
stat –x (“list all external files”) ignore temporary build directories. That is, you want the listing to exclude both the directories themselves and all the files within those directories. If the build directories are named
build_001,
build_002, etc., you might be tempted to use this pattern:
But this pattern matches only the contents of the directories, not the directories themselves.
Note: a directory matching the pattern that is a subdirectory of another matching directory will be excluded. For example, in structure like
build_001/build_002,
build_002 will be excluded, but
build_001 will not.
(The single pattern */build_???* would match both directories and their contents. But it also might coincidentally match names of some source files, such as
lib/build_end.c.)