smalltalk
author Claus Gittinger <cg@exept.de>
Thu, 09 Jan 1997 16:46:21 +0100
changeset 193 e38e9ee3b219
parent 192 d63a7455cb52
child 234 861d75db3bec
permissions -rwxr-xr-x
*** empty log message ***

#!/bin/sh

# $Header$
#
#
# startup script for smalltalk
# actually, simply calls stx, passing all arguments.
#

# In previous versions, smalltalk used to be the executable itself.
# This lead to problems on systems, where things like LD_LIBRARY_PATH
# should be set in advance. 
# Now, here is a place to do such things ...

#
# -x name specifies an explicit executable
#
if [ "$1" = "-x" ]
then
    shift
    STX=$1
    shift
else
    STX=stx
fi

#
#
# some have Xlibs in /usr/openwin/lib ...
#
if [ -d /usr/openwin/lib ]
then
    LD_LIBRARY_PATH=.:/usr/openwin/lib
else
    LD_LIBRARY_PATH=.
fi

#
# my own libs may be found in STX_LIBDIR/lib
#
if [ "$STX_LIBDIR" != "" ]
then
    LD_LIBRARY_PATH=$STX_LIBDIR/lib:$LD_LIBRARY_PATH
fi

export LD_LIBRARY_PATH
exec $STX $*