summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Environment.xml
diff options
context:
space:
mode:
authorAlexandre Feblot <devnull@localhost>2015-04-25 15:43:10 (GMT)
committerAlexandre Feblot <devnull@localhost>2015-04-25 15:43:10 (GMT)
commita9c8d39ed653a54ed99086aeef0fa716787dc73b (patch)
tree750230ee8e3cac7819745b6e800228d31be24de7 /src/engine/SCons/Environment.xml
parentac9335aac3ad4c320257a865711a4dfeaa23866c (diff)
downloadSCons-a9c8d39ed653a54ed99086aeef0fa716787dc73b.zip
SCons-a9c8d39ed653a54ed99086aeef0fa716787dc73b.tar.gz
SCons-a9c8d39ed653a54ed99086aeef0fa716787dc73b.tar.bz2
Add an exclude parameter to Glob(), to allow excluding some elements matching the main pattern
Diffstat (limited to 'src/engine/SCons/Environment.xml')
-rw-r--r--src/engine/SCons/Environment.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/engine/SCons/Environment.xml b/src/engine/SCons/Environment.xml
index b3b132e..6de2669 100644
--- a/src/engine/SCons/Environment.xml
+++ b/src/engine/SCons/Environment.xml
@@ -1697,7 +1697,7 @@ Nodes or strings representing path names.
<scons_function name="Glob">
<arguments>
-(pattern, [ondisk, source, strings])
+(pattern, [ondisk, source, strings, exclude])
</arguments>
<summary>
<para>
@@ -1811,12 +1811,23 @@ directory.)
</para>
<para>
+The
+<varname>exclude</varname>
+argument may be set to a list of patterns
+(following the same Unix shell semantics)
+which must be filtered out of returned elements.
+Elements matching a least one pattern of
+this list will be excluded.
+</para>
+
+<para>
Examples:
</para>
<example_commands>
Program('foo', Glob('*.c'))
Zip('/tmp/everything', Glob('.??*') + Glob('*'))
+sources = Glob('*.cpp', exlude=['os_*_specific_*.cpp']) + Glob('os_%s_specific_*.cpp'%currentOS)
</example_commands>
</summary>
</scons_function>