stk/Src/run-stk.in

38 lines
614 B
Plaintext
Raw Permalink Normal View History

1996-09-27 06:29:02 -04:00
#!/bin/sh
# STk launcher
# determine the kind of the machine which is running this script
os=`uname -s`
version=`uname -r`
machine=`uname -m`
case $os in
Linux*)
case $version in
1.*) version=1.X;;
esac
case $machine in
i*86) machine=ix86;;
esac;;
SunOS*)
case $machine in
sun4*) machine=sun4;;
esac
esac
id=$os-$version-$machine
STK_LIBRARY=@libdir@
export STK_LIBRARY
#
# Launch Snow rather than STk if the variable DISPLAY is not set.
#
if [ "$DISPLAY" = "" ] ;then
exec $STK_LIBRARY/$id/snow-bin $*
else
exec $STK_LIBRARY/$id/stk-bin -name stk $*
fi