diff options
author | Steven Knight <knight@baldmt.com> | 2010-07-22 14:13:43 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-07-22 14:13:43 (GMT) |
commit | 68ac24295c5783711065c0981408628d11813761 (patch) | |
tree | d3eeb83723dbfd742d1a4ee423e39c92048de7e0 /bin/scons-proc.py | |
parent | 83ae1f1188395dc0032ff735ad7d0883a7c3b68c (diff) | |
download | SCons-68ac24295c5783711065c0981408628d11813761.zip SCons-68ac24295c5783711065c0981408628d11813761.tar.gz SCons-68ac24295c5783711065c0981408628d11813761.tar.bz2 |
Use <synopsis> tags for the definitions of Builders and function.
Diffstat (limited to 'bin/scons-proc.py')
-rw-r--r-- | bin/scons-proc.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/scons-proc.py b/bin/scons-proc.py index 19c3e0c..6d15816 100644 --- a/bin/scons-proc.py +++ b/bin/scons-proc.py @@ -337,7 +337,7 @@ class Builder(SConsThing): prefix = 'b-' tag = 'function' def xml_term(self): - return ('<term><%s>%s()</%s></term>\n<term><%s>env.%s()</%s></term>' % + return ('<term><synopsis><%s>%s()</%s></synopsis>\n<synopsis><%s>env.%s()</%s></synopsis></term>' % (self.tag, self.name, self.tag, self.tag, self.name, self.tag)) def entityfunc(self): return self.name @@ -367,7 +367,7 @@ class Function(SConsThing): arguments = self.arguments except AttributeError: arguments = ['()'] - result = [] + result = ['<term>'] for arg in arguments: try: signature = arg.signature @@ -375,9 +375,10 @@ class Function(SConsThing): signature = "both" s = self.args_to_xml(arg) if signature in ('both', 'global'): - result.append('<term>%s%s</term>\n' % (self.name, s)) #<br> + result.append('<synopsis>%s%s</synopsis>\n' % (self.name, s)) #<br> if signature in ('both', 'env'): - result.append('<term><varname>env</varname>.%s%s</term>\n' % (self.name, s)) + result.append('<synopsis><varname>env</varname>.%s%s</synopsis>' % (self.name, s)) + result.append('</term>') return ''.join(result) def entityfunc(self): return self.name |