Launcher file to modify

This commit is contained in:
Solene Rapenne 2018-10-24 06:47:31 +02:00
parent 0f22f5b505
commit 4bcecb442f
1 changed files with 29 additions and 0 deletions

29
reed-alert.in Executable file
View File

@ -0,0 +1,29 @@
#!/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