7
usage='echo "usage: dotty [-V] [-lm (sync|async)] [-el (0|1)] <filename>"'
9
if [ "x$DOTTYOPTIONS" != "x" ]; then
10
set -- $DOTTYOPTIONS $*
13
while [ "x$1" != 'x' ]; do
16
echo "dotty version 96c (09-24-96)"
27
if [ "x$LMODE" != 'xsync' -a "x$LMODE" != 'xasync' ]; then
36
if [ "x$MLEVEL" != 'x0' -a "x$MLEVEL" != 'x1' ]; then
43
FILES=`echo $FILES \"$1\"`
51
FILES=`echo $FILES \"$1\"`
57
if [ "x$DOTTYPATH" != 'x' ]; then
58
LEFTYPATH="$DOTTYPATH:$LEFTYPATH"
63
CMDS="dotty.protogt.layoutmode = '$LMODE';"
65
CMDS=`echo $CMDS dotty.mlevel = $MLEVEL";"`
67
if [ "x$loadfile" != 'x' ]; then
68
CMDS=`echo $CMDS load \("'"$loadfile"'"\)";"`
71
if [ "x$FILES" = 'x' ]; then
74
FUNC="dotty.createviewandgraph"
76
CMDS=`echo $CMDS $FUNC \($i, "'"file"'", null, null\)";"`
79
leftypath=`which lefty`
80
if [ ! -f "$leftypath" ]; then
81
echo "dotty: cannot locate the lefty program"
82
echo " make sure that your path includes"
83
echo " the directory containing dotty and lefty"
89
checkpath = function () {
90
if (tablesize (dotty) > 0)
93
echo ('dotty: cannot locate the dotty scripts');
94
echo (' make sure that the environment variable LEFTYPATH');
95
echo (' is set to the directory containing dotty.lefty');
101
monitorfile = dotty.monitorfile;