-
Notifications
You must be signed in to change notification settings - Fork 564
/
meditate-linux.sh
44 lines (40 loc) · 1000 Bytes
/
meditate-linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
if [ $# != 1 ]; then
echo "usage: sh meditate.sh <lisp implementation>"
echo " lisp implementation: one of abcl, ccl, clisp, ecl, or sbcl"
exit
fi
choose_command_line() {
case "$1" in
'abcl' )
echo "abcl --noinform --noinit --load contemplate.lisp --eval '(quit)'"
;;
'ccl' )
echo "ccl -n -l contemplate.lisp -e '(quit)'"
;;
'clisp' )
echo "clisp -q -norc -ansi contemplate.lisp"
;;
'ecl' )
echo "ecl -norc -load contemplate.lisp -eval '(quit)'"
;;
'sbcl' )
echo "sbcl --script contemplate.lisp"
;;
* )
echo ""
exit
;;
esac
}
CONTEMPLATE=$(choose_command_line $1)
if [ "$CONTEMPLATE" = "" ]; then
echo "Unknown Lisp implementation."
exit
else
echo $CONTEMPLATE
fi
$CONTEMPLATE
while inotifywait -e modify --exclude "\#.*\#" -q -r koans; do
$CONTEMPLATE
done