summaryrefslogtreecommitdiffstats
path: root/bin/scons-proc.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-03-04 02:16:32 (GMT)
committerSteven Knight <knight@baldmt.com>2010-03-04 02:16:32 (GMT)
commit1b399b87a54a7898e303c2c42785bc11bceada59 (patch)
treee074681c742958688517946f855a8fa11fe7288b /bin/scons-proc.py
parent2af231cac62af5ff445e217b8cf35770f64af588 (diff)
downloadSCons-1b399b87a54a7898e303c2c42785bc11bceada59.zip
SCons-1b399b87a54a7898e303c2c42785bc11bceada59.tar.gz
SCons-1b399b87a54a7898e303c2c42785bc11bceada59.tar.bz2
More enhancements for documenting functions:
* Add the support for global="0" and env="0" to SConsDoc.py. * Remove unnecessary .IP lines before '\""" delimiters before the next builder / tool / function entry. * Add support for <variablelist> lists.
Diffstat (limited to 'bin/scons-proc.py')
-rw-r--r--bin/scons-proc.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/scons-proc.py b/bin/scons-proc.py
index b6c59d6..41ff09a 100644
--- a/bin/scons-proc.py
+++ b/bin/scons-proc.py
@@ -209,7 +209,15 @@ class SCons_XML_to_man(SCons_XML):
body = string.replace(body, '<para>\n', '')
body = string.replace(body, '<para>', '\n')
body = string.replace(body, '</para>\n', '')
- body = re.sub('\.EE\n\n+(?!\.IP)', '.EE\n.IP\n', body)
+
+ body = string.replace(body, '<variablelist>\n', '.RS 10\n')
+ body = re.compile(r'<varlistentry>\n<term>([^<]*)</term>\n<listitem>\n').sub(r'.HP 6\n.B \1\n', body)
+ body = string.replace(body, '</listitem>\n', '')
+ body = string.replace(body, '</varlistentry>\n', '')
+ body = string.replace(body, '</variablelist>\n', '.RE\n')
+
+ body = re.sub(r'\.EE\n\n+(?!\.IP)', '.EE\n.IP\n', body)
+ body = string.replace(body, '\n.IP\n\'\\"', '\n\n\'\\"')
body = re.sub('&(scons|SConstruct|SConscript|jar);', r'\\fB\1\\fP', body)
body = string.replace(body, '&Dir;', r'\fBDir\fP')
body = string.replace(body, '&target;', r'\fItarget\fP')