diff options
author | Steven Knight <knight@baldmt.com> | 2007-05-18 05:40:31 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2007-05-18 05:40:31 (GMT) |
commit | 691da3ed8ba25b0e776d83b4404993925a876071 (patch) | |
tree | 4d532be0f91384214c930e1150d7e6becd44a92d /bin | |
parent | f020c85e62e3e5c53c2b09a803baac67c06ff14a (diff) | |
download | SCons-691da3ed8ba25b0e776d83b4404993925a876071.zip SCons-691da3ed8ba25b0e776d83b4404993925a876071.tar.gz SCons-691da3ed8ba25b0e776d83b4404993925a876071.tar.bz2 |
Merged revisions 1884-1905 via svnmerge from
http://scons.tigris.org/svn/scons/branches/core
........
r1891 | stevenknight | 2007-04-24 08:57:03 -0500 (Tue, 24 Apr 2007) | 1 line
0.96.D632 - Fix 0.96.96 reference count regression during parallel builds.
........
r1892 | stevenknight | 2007-04-24 12:51:05 -0500 (Tue, 24 Apr 2007) | 1 line
0.96.D633 - Fix documented default value(s) of $MSVS_USE_MFC_DIRS.
........
r1893 | stevenknight | 2007-04-24 16:12:14 -0500 (Tue, 24 Apr 2007) | 1 line
0.96.D634 - Make the DirEntryScanner tolerant of non-Dir nodes.
........
r1898 | stevenknight | 2007-05-09 15:07:15 -0500 (Wed, 09 May 2007) | 1 line
0.96.D635 - Portability fixes in test scripts.
........
r1899 | stevenknight | 2007-05-12 08:19:13 -0500 (Sat, 12 May 2007) | 1 line
0.96.D636 - Update documentation with rudimentary Tool module descriptions.
........
r1901 | stevenknight | 2007-05-17 14:32:14 -0500 (Thu, 17 May 2007) | 1 line
0.97.D001 - Initialize 0.97 for release.
........
Diffstat (limited to 'bin')
-rw-r--r-- | bin/SConsDoc.py | 9 | ||||
-rw-r--r-- | bin/scons-proc.py | 27 |
2 files changed, 27 insertions, 9 deletions
diff --git a/bin/SConsDoc.py b/bin/SConsDoc.py index 57bf1d4..96625b4 100644 --- a/bin/SConsDoc.py +++ b/bin/SConsDoc.py @@ -94,6 +94,7 @@ class Item: if self.sort_name[0] == '_': self.sort_name = self.sort_name[1:] self.summary = [] + self.sets = None self.uses = None def cmp_name(self, name): if name[0] == '_': @@ -284,6 +285,14 @@ class SConsDocHandler(xml.sax.handler.ContentHandler, self.begin_collecting([]) def end_uses(self): self.current_object.uses = ''.join(self.collect).split() + self.current_object.uses.sort() + self.end_collecting() + + def start_sets(self, attrs): + self.begin_collecting([]) + def end_sets(self): + self.current_object.sets = ''.join(self.collect).split() + self.current_object.sets.sort() self.end_collecting() # Stuff for the ErrorHandler portion. diff --git a/bin/scons-proc.py b/bin/scons-proc.py index d55016f..fc60a9b 100644 --- a/bin/scons-proc.py +++ b/bin/scons-proc.py @@ -23,8 +23,8 @@ import SConsDoc base_sys_path = [os.getcwd() + '/build/test-tar-gz/lib/scons'] + sys.path helpstr = """\ -Usage: scons-proc.py [--man|--sgml] \ - [-b file(s)] [-t file(s)] [-v file(s)] [infile ...] +Usage: scons-proc.py [--man|--sgml] + [-b file(s)] [-t file(s)] [-v file(s)] [infile ...] Options: -b file(s) dump builder information to the specified file(s) -t file(s) dump tool information to the specified file(s) @@ -36,8 +36,9 @@ Options: """ opts, args = getopt.getopt(sys.argv[1:], - "b:t:v:", - ['builders=', 'man', 'sgml', 'tools=', 'variables=']) + "b:ht:v:", + ['builders=', 'help', + 'man', 'sgml', 'tools=', 'variables=']) buildersfiles = None output_type = '--sgml' @@ -47,6 +48,9 @@ variablesfiles = None for o, a in opts: if o in ['-b', '--builders']: buildersfiles = a + elif o in ['-h', '--help']: + sys.stdout.write(helpstr) + sys.exit(0) elif o in ['--man', '--sgml']: output_type = o elif o in ['-t', '--tools']: @@ -146,11 +150,16 @@ class SCons_XML_to_SGML(SCons_XML): f.write('<listitem>\n') for chunk in v.summary.body: f.write(str(chunk)) - #if v.uses: - # u = map(lambda x, s: '&%slink-%s;' % (s.prefix, x), v.uses) - # f.write('<para>\n') - # f.write('Uses: ' + ', '.join(u) + '.\n') - # f.write('</para>\n') + if v.sets: + s = map(lambda x: '&cv-link-%s;' % x, v.sets) + f.write('<para>\n') + f.write('Sets: ' + ', '.join(s) + '.\n') + f.write('</para>\n') + if v.uses: + u = map(lambda x: '&cv-link-%s;' % x, v.uses) + f.write('<para>\n') + f.write('Uses: ' + ', '.join(u) + '.\n') + f.write('</para>\n') f.write('</listitem>\n') f.write('</varlistentry>\n') def write_mod(self, filename): |