-
Notifications
You must be signed in to change notification settings - Fork 565
/
meditate-macos.sh
44 lines (40 loc) · 989 Bytes
/
meditate-macos.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/sh
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 fswatch --exclude '#.*#' -r1 koans | grep .; do
$CONTEMPLATE
done