Commit | Line | Data |
---|---|---|
244ac2d6 | 1 | #!/bin/bash |
dda1fe77 | 2 | basedir=$(dirname $0) |
dda1fe77 VS |
3 | step=${STEP:-stepA_mal} |
4 | ||
f301fa6c VS |
5 | if [[ -e /usr/share/kawa/lib/kawa.jar ]]; then |
6 | kawa=/usr/share/kawa/lib/kawa.jar | |
7 | elif [[ -e /usr/local/share/kawa/lib/kawa.jar ]]; then | |
8 | kawa=/usr/local/share/kawa/lib/kawa.jar | |
9 | fi | |
10 | ||
d7d982e8 VS |
11 | if [[ $(which sash 2>/dev/null) ]]; then |
12 | sagittarius=sash | |
13 | elif [[ $(which sagittarius 2>/dev/null) ]]; then | |
14 | sagittarius=sagittarius | |
15 | fi | |
16 | ||
6c0968a6 | 17 | case ${scheme_MODE:-chibi} in |
dda1fe77 VS |
18 | chibi) exec chibi-scheme -I$basedir $basedir/$step.scm "${@}" ;; |
19 | kawa) exec java -cp $kawa:$basedir/out $step "${@}" ;; | |
20 | gauche) exec gosh -I$basedir $basedir/$step.scm "${@}" ;; | |
21 | chicken) CHICKEN_REPOSITORY=$basedir/eggs exec $basedir/$step "${@}" ;; | |
d7d982e8 | 22 | sagittarius) exec $sagittarius -n -L$basedir $basedir/$step.scm "${@}" ;; |
dda1fe77 VS |
23 | cyclone) exec $basedir/$step "${@}" ;; |
24 | foment) exec foment $basedir/$step.scm "${@}" ;; | |
6c0968a6 | 25 | *) echo "Invalid scheme_MODE: ${scheme_MODE}"; exit 2 ;; |
244ac2d6 | 26 | esac |