summaryrefslogtreecommitdiffstats
path: root/waf_libbsd.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-04-04 17:16:28 +1100
committerChris Johns <chrisj@rtems.org>2019-04-04 17:16:28 +1100
commit8a7d33cd300322191fab579a64b1a7df2fb4e83d (patch)
tree705c6ef9088a939b30fe1aee3211806dc7db2efb /waf_libbsd.py
parent3f2b54d9715f0ad54a28a25d99be26340a35296a (diff)
downloadrtems-libbsd-8a7d33cd300322191fab579a64b1a7df2fb4e83d.tar.bz2
Fix the sed generator for processing INI configuration files.
Diffstat (limited to 'waf_libbsd.py')
-rw-r--r--waf_libbsd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/waf_libbsd.py b/waf_libbsd.py
index 468dcc97..9445d629 100644
--- a/waf_libbsd.py
+++ b/waf_libbsd.py
@@ -227,6 +227,7 @@ class Builder(builder.ModuleManager):
except:
bld.fatal('network configuraiton \'%s\' read failed' % (bld.env.NET_CONFIG))
lc = 0
+ sed = 'sed '
for l in net_cfg_lines:
lc += 1
if l.strip().startswith('NET_CFG_'):
@@ -236,10 +237,9 @@ class Builder(builder.ModuleManager):
'parse error: %d: %s' % (bld.env.NET_CONFIG, lc, l))
lhs = ls[0].strip()
rhs = ls[1].strip()
- sed = 'sed '
for t in tags:
if lhs == t:
- sed += "-e 's/@%s@/%s/'" % (t, rhs)
+ sed += "-e 's/@%s@/%s/' " % (t, rhs)
bld(target = "testsuite/include/rtems/bsd/test/network-config.h",
source = "testsuite/include/rtems/bsd/test/network-config.h.in",
rule = sed + " < ${SRC} > ${TGT}",