annotate scripts/view_log.sh @ 2048:6796d85f3d6b draft

remove error
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 28 Jan 2016 00:05:49 +0900
parents 9b0908cb7553
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1431
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/bin/bash
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 if [ $# -ne 1 ]; then
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 echo "usage: ./view_log.sh target"
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 exit 1
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 fi
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 ruby ./log.rb $1 > /tmp/log.dot
9b0908cb7553 change to exporting filetype
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 dot -Tsvg /tmp/log.dot > /tmp/log.svg; open /tmp/log.svg