/usr/bin/lneato is in graphviz 2.36.0-0ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | #!/bin/sh
FILES=""
MLEVEL="0"
LMODE="async"
FLAGS=
usage="echo usage: lneato [-V] [-lm (sync|async)] [-el (0|1)] <filename>"
if test "x$DOTTYOPTIONS" != "x"
then
options=$DOTTYOPTIONS
else
options="$@"
fi
set -- $options
for i in "$@"
do
if test "x$i" = "x$1"
then
case $i in
-V)
shift
echo "lneato version 95 (04-18-95)"
FLAGS=$FLAGS" -V"
;;
-lm)
shift
LMODE="$1"
shift
if test "x$LMODE" != "xsync" -a "x$LMODE" != "xasync"
then
$usage
exit 1
fi
;;
-el)
shift
MLEVEL="$1"
shift
if test "x$MLEVEL" != "x0" -a "x$MLEVEL" != "x1"
then
$usage
exit 1
fi
;;
-?*)
$usage
exit 1
;;
*)
FILES="$FILES '"$1"'"
shift
;;
esac
fi
done
if test "x$MLEVEL" != "x0"
then
echo "FILES = $FILES"
echo "MLEVEL = $MLEVEL"
echo "LMODE = $LMODE"
fi
if test "x$DOTTYPATH" != "x"
then
LEFTYPATH="$DOTTYPATH:$LEFTYPATH"
fi
CMDS="dotty.layoutmode = '$LMODE';"
CMDS="$CMDS dotty.mlevel = $MLEVEL; dot.mlevel = $MLEVEL;"
if test "x$FILES" = "x"
then
FILES=null
fi
for i in $FILES
do
CMDS="$CMDS dotty.createviewandgraph($i,'file',null,null);"
done
lefty $FLAGS -e "
load ('dotty.lefty');
checkpath = function () {
if (tablesize(dotty) > 0); # because tablesize(undef) returns "" not 0
else {
echo('You must set LEFTYPATH to the lefty lib directory path name.');
exit();
}
};
checkpath ();
dotty.protogt.lserver = 'neato';
dotty.protogt.graph.type = 'graph';
dotty.init ();
monitorfile = dotty.monitorfile;
$CMDS
txtview ('off');
"
|