summaryrefslogtreecommitdiff
path: root/bin/scons-proc.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/scons-proc.py')
-rw-r--r--bin/scons-proc.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/scons-proc.py b/bin/scons-proc.py
index 7a56a798..3d460ab2 100644
--- a/bin/scons-proc.py
+++ b/bin/scons-proc.py
@@ -126,6 +126,16 @@ class SCons_XML(object):
fl = filename.split(',')
filename = fl[0]
f = self.fopen(filename)
+
+ # Write XML header
+ f.write("""<?xml version='1.0'?>
+<variablelist xmlns="%s"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="%s scons.xsd">
+
+""" % (SConsDoc.dbxsd, SConsDoc.dbxsd))
+ f.write(Warning)
+
for v in self.values:
f.write('\n<varlistentry id="%s%s">\n' %
(v.prefix, v.idfunc()))
@@ -149,6 +159,9 @@ class SCons_XML(object):
f.write('</listitem>\n')
f.write('</varlistentry>\n')
+ # Write end tag
+ f.write('\n</variablelist>\n')
+
def write_mod(self, filename):
try:
description = self.values[0].description
@@ -262,7 +275,7 @@ class Function(SConsThing):
signature = arg.signature
except AttributeError:
signature = "both"
- s = self.args_to_xml(arg)
+ s = arg # TODO: self.args_to_xml(arg)
if signature in ('both', 'global'):
result.append('<synopsis>%s%s</synopsis>\n' % (self.name, s)) #<br>
if signature in ('both', 'env'):