2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Enable custom regexp in bld(features='subst', re_m4=...)

This commit is contained in:
Thomas Nagy 2014-01-14 19:58:45 +01:00
parent a29f775851
commit 3581b89fbb
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -694,7 +694,8 @@ class subst_pc(Task.Task):
lst.append(g(1))
return "%%(%s)s" % g(1)
return ''
code = re_m4.sub(repl, code)
global re_m4
code = getattr(self.generator, 're_m4', re_m4).sub(repl, code)
try:
d = self.generator.dct