2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 11:51:20 +01:00
waf/docs/book/examples/nodes_ant_glob/wscript
2011-09-10 11:13:51 +02:00

20 lines
370 B
Python

#! /usr/bin/env python
"""
A few examples of ant_glob. Try
$ waf configure dosomething
"""
top = '.'
out = 'build'
def configure(ctx):
pass
def dosomething(ctx):
print(ctx.path.ant_glob('wsc*'))
print(ctx.path.ant_glob('w?cr?p?'))
print(ctx.root.ant_glob('usr/include/**/zlib*', dir=False, src=True))
print(ctx.path.ant_glob(['**/*py'], excl=['**/default*']))