#!/bin/sh

# this script runs the control flow drawer class. It can only be used in Samoa,
# because of the JAVA5 path.

JAVA5="/misc/usr/local/java/jdk1.5.0_04/bin/java"

case $# in
  1)
     $JAVA5 RegAlloc.RalfTools.ControlFlowViewer $1;
  ;;
  2)
     $JAVA5 RegAlloc.RalfTools.ControlFlowViewer $1 $2;
  ;;
  *)
     echo 1>&2 "Usage: $0 file.dat [file.out]";
     exit 1;
  ;;
esac
