You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/book/examples/nodes_ant_glob/wscript

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*']))