[build2] Wildcards and pattern exclusion
Moldmann Max (DC-MA/ENG52-NA)
Max.Moldmann at boschrexroth-us.com
Fri Apr 7 17:26:56 UTC 2017
Hi Boris,
exe{main}: {h c}{** -Template*}
did it for me now, cause the files all match this pattern.
But it still would be nice if I could exclude all files below a certain path as the pattern you suggested didn't work (same error message as before):
exe{main}: {h c}{** -Templates/*}
One remark:
Build2 doesn't seem to produce exit codes >0 for a failed build which would be nice when included in scripts.
Concluding I can state Build2 is MUCH faster than my old parallel make build! Awesome work!!!
Max
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Friday, April 7, 2017 5:38 AM
To: Moldmann Max (DC-MA/ENG52-NA) <Max.Moldmann at boschrexroth-us.com>
Cc: users at build2.org
Subject: Re: [build2] Wildcards and pattern exclusion
Hi Max,
Moldmann Max (DC-MA/ENG52-NA) <Max.Moldmann at boschrexroth-us.com> writes:
> exe{main}: {h c}{** -Templates}
>
> But build2 doesn't exclude the Templates dir
Because 'Templates' is not a directory ('Templates/' is). But you also cannot exclude directories from file matches (see the docs for details).
The way to accomplish what you want would be:
exe{main}: {h c}{** -Templates/*}
Boris
More information about the users
mailing list