You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
501 B
33 lines
501 B
#!/bin/sh
|
|
|
|
echo "digraph {"
|
|
echo " { node [fontname=Helvetica,fontsize=20];"
|
|
|
|
while read first second third rest; do
|
|
FROM=; TO=
|
|
case "$first" in
|
|
"trace:building")
|
|
case "$third" in
|
|
"->")
|
|
FROM="$second"; TO="$rest";;
|
|
*)
|
|
continue;;
|
|
esac
|
|
;;
|
|
*)
|
|
continue;;
|
|
esac
|
|
[ -n "$FROM" -a -n "$TO" ] || continue
|
|
for to in $TO; do
|
|
out=" \"$FROM\" -> \"$to\""
|
|
case $to in
|
|
*distro/*|*vm/*|*ve/*)
|
|
echo "$out [weight=10];";;
|
|
*)
|
|
echo "$out;";;
|
|
esac
|
|
done
|
|
done
|
|
|
|
echo " }"
|
|
echo "}"
|
|
|