mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-24 18:59:39 +01:00
docs for the regexp substitution in demos/subst/
This commit is contained in:
parent
3581b89fbb
commit
835528be01
@ -1,2 +1,2 @@
|
||||
prefix: @PREFIX@
|
||||
prefix: %PREFIX%
|
||||
bindir: @BINDIR@
|
||||
|
@ -4,7 +4,7 @@
|
||||
top = '.'
|
||||
out = 'bin'
|
||||
|
||||
import os
|
||||
import os, re
|
||||
from waflib import Utils
|
||||
|
||||
def configure(conf):
|
||||
@ -23,6 +23,7 @@ def build(bld):
|
||||
install_path = '/tmp/uff/', # installation path, optional
|
||||
chmod = Utils.O755, # installation mode, optional
|
||||
PREFIX = bld.env.PREFIX, # variables to use in the substitution
|
||||
re_m4 = re.compile('%%(\w+)%%', re.M), # custom substitution
|
||||
BINDIR = bld.env.BINDIR)
|
||||
|
||||
# if you are using an external dict, here is to merge the key/values:
|
||||
|
Loading…
Reference in New Issue
Block a user