annotate scripts/showTopo.sh @ 315:f9ec5bead150

come back response. but has bug
author sugi
date Tue, 10 Dec 2013 12:32:43 +0900
parents 094d8fa4945e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
185
094d8fa4945e add comment
e095732
parents:
diff changeset
1 #!/bin/bash
094d8fa4945e add comment
e095732
parents:
diff changeset
2 max=$1
094d8fa4945e add comment
e095732
parents:
diff changeset
3 child_num=`expr $max - 1`
094d8fa4945e add comment
e095732
parents:
diff changeset
4 ruby ./topology/treen.rb $max 2 > ./topology/tree.dot
094d8fa4945e add comment
e095732
parents:
diff changeset
5 dot -Tpng ./topology/tree.dot > ./topology/tree.png
094d8fa4945e add comment
e095732
parents:
diff changeset
6 open ./topology/tree.png
094d8fa4945e add comment
e095732
parents:
diff changeset
7