Blob


1 BEGIN { print "digraph map {"; }
2 /^. / { output_edge(); location = destination = ""; }
3 $1 == "location" { location = $2; }
4 $1 == "destination" { destination = $2; }
5 $1 == "prospect" { prospect = $2; }
6 END { output_edge(); print "}"; }
8 function output_edge() {
9 if (location && destination)
10 print "\t" location " -> " destination;
11 if (location && prospect)
12 print "\t" location " -> " prospect " [style=dashed]";
13 }