3 # $NetBSD: smalleiffel.sh,v 1.3 1999/10/12 08:01:33 jlam Exp $
5 # This script is invoked as:
7 # smalleiffel <cmd> [<arg> ...]
9 # where <cmd> is one of the programs in @@SE_LIBEXEC@@.
11 SmallEiffel=@@SE_LIB@@/sys/system.se; export SmallEiffel
12 se_cmd=@@SE_LIBEXEC@@/$1
15 # Load the local SmallEiffel environment from:
16 # ./.smalleiffelrc, or else
17 # ${HOME}/.smalleiffelrc.
18 # This file is the right place to define new environment variables used
19 # by 3rd-party libraries, e.g. GOBO=/usr/pkg/share/gobo-eiffel.
21 if [ -f ./.smalleiffelrc ]
24 elif [ -f ${HOME}/.smalleiffelrc ]
26 . ${HOME}/.smalleiffelrc
31 exec ${se_cmd} ${1+$@}
33 echo "smalleiffel: command ${se_cmd} not found."