blob: c3d16a2028658cdd61a1bbf6678f39bb3c436f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/python
import sys
import json
config = json.load(sys.stdin)
print 'digraph foo {'
for spec in config['projects']:
for dep in spec.get('build-depends', []):
print '"%s" -> "%s";' % (spec['name'], dep)
print '}'
|