mirror of git://bitreich.org/reed-alert
30 lines
501 B
Bash
Executable File
30 lines
501 B
Bash
Executable File
#!/bin/sh
|
|
|
|
REEDDIR=
|
|
|
|
# check for ecl
|
|
type ecl 2>/dev/null
|
|
if [ $? -eq 0 ]
|
|
then
|
|
LISP="ecl"
|
|
LOADPARAM="-load"
|
|
SHELLPARAM="-shell"
|
|
else
|
|
# check for sbcl if ecl not in PATH
|
|
type sbcl 2>/dev/null
|
|
if [ $? -eq 0 ]
|
|
then
|
|
LISP="sbcl"
|
|
LOADPARAM="--load"
|
|
SHELLPARAM="--shell"
|
|
else
|
|
echo "ecl or sbcl not found in PATH."
|
|
echo "you need at least one of them to use reed-alert"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
$LISP $LOADPARAM $REEDDIR/functions.lisp \
|
|
$LOADPARAM $REEDDIR/probes.lisp \
|
|
$SHELLPARAM $1
|