Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 5854:2c00c51357d8
added more content to graal.api.meta overview
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 18 Jul 2012 14:38:16 +0200 |
parents | 767312416f6a |
children | c21886d4e125 |
comparison
equal
deleted
inserted
replaced
5853:767312416f6a | 5854:2c00c51357d8 |
---|---|
2247 # Generate dependency graph with Graphviz | 2247 # Generate dependency graph with Graphviz |
2248 if args.dot_output_base is not None: | 2248 if args.dot_output_base is not None: |
2249 dot = join(tmpbase, 'all', str(args.dot_output_base) + '.dot') | 2249 dot = join(tmpbase, 'all', str(args.dot_output_base) + '.dot') |
2250 svg = join(tmpbase, 'all', str(args.dot_output_base) + '.svg') | 2250 svg = join(tmpbase, 'all', str(args.dot_output_base) + '.svg') |
2251 jpg = join(tmpbase, 'all', str(args.dot_output_base) + '.jpg') | 2251 jpg = join(tmpbase, 'all', str(args.dot_output_base) + '.jpg') |
2252 html = join(tmpbase, 'all', str(args.dot_output_base) + '.html') | |
2252 with open(dot, 'w') as fp: | 2253 with open(dot, 'w') as fp: |
2253 dim = len(projects) | 2254 dim = len(projects) |
2254 print >> fp, 'digraph projects {' | 2255 print >> fp, 'digraph projects {' |
2255 print >> fp, 'rankdir=BT;' | 2256 print >> fp, 'rankdir=BT;' |
2256 print >> fp, 'size = "' + str(dim) + ',' + str(dim) + '";' | 2257 print >> fp, 'size = "' + str(dim) + ',' + str(dim) + '";' |
2276 content = re.sub('<title>.*</title>', '', content) | 2277 content = re.sub('<title>.*</title>', '', content) |
2277 content = re.sub('xlink:title="[^"]*"', '', content) | 2278 content = re.sub('xlink:title="[^"]*"', '', content) |
2278 with open(svg, 'w') as fp: | 2279 with open(svg, 'w') as fp: |
2279 fp.write(content) | 2280 fp.write(content) |
2280 | 2281 |
2282 # Create HTML that embeds the svg file in an <object> frame | |
2283 with open(html, 'w') as fp: | |
2284 print >> fp, '<html><body><object data="modules.svg" type="image/svg+xml"></object></body></html>' | |
2285 | |
2281 # Post-process generated overview-summary.html files | 2286 # Post-process generated overview-summary.html files |
2282 | |
2283 def fix_overview_summary(path, topLink): | 2287 def fix_overview_summary(path, topLink): |
2284 """ | 2288 """ |
2285 Processes an "overview-summary.html" generated by javadoc to put the complete | 2289 Processes an "overview-summary.html" generated by javadoc to put the complete |
2286 summary text above the Packages table. | 2290 summary text above the Packages table. |
2287 """ | 2291 """ |