Revision 0144dda67dd8e91578af2ffb657c998365da5cee authored by danielhoehener on 15 April 2016, 18:52:12 UTC, committed by danielhoehener on 15 April 2016, 18:52:12 UTC
1 parent e64cec5
prepare.py
import sys
def apply_rules(s):
s = s.replace('!FEATURE!', 'style="filled"; fillcolor="lightyellow3";')
node='shape=ellipse, style=filled, '
s = s.replace('!NODE:missing!', node + 'fillcolor=red')
s = s.replace('!NODE:development!', node + 'fillcolor=pink')
s = s.replace('!NODE:designed!', node + 'fillcolor=orange')
s = s.replace('!NODE:compiled!', node + 'fillcolor=yellow')
s = s.replace('!NODE:documented!', node + 'fillcolor=green')
s = s.replace('!NODE:tested!', node + 'fillcolor=white')
s = s.replace('!CONFIG!', 'shape=note, style=filled, fillcolor=grey')
s = s.replace('!TOPIC!', 'shape=box, style=filled, fillcolor=white')
warn = \
"""
// DO NOT EDIT THIS FILE. IT IS NOW AUTOGENERATED FROM Duckietown_ROS_Diagram.dot.in
//
//
// Any changes that you do will be erased.
//
//
"""
return warn + s
if __name__ == '__main__':
s = sys.stdin.read()
s = apply_rules(s)
print(s)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...