1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Change the definition of CCL_DEFAULT_DIRECTORY below to refer to |
---|
4 | # your OpenMCL installation directory. |
---|
5 | # Any definition of CCL_DEFAULT_DIRECTORY already present in the environment |
---|
6 | # takes precedence over definitions made below. |
---|
7 | |
---|
8 | if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then |
---|
9 | CCL_DEFAULT_DIRECTORY=/usr/local/src/ccl |
---|
10 | fi |
---|
11 | |
---|
12 | export CCL_DEFAULT_DIRECTORY |
---|
13 | |
---|
14 | # This is shorter (& easier to type), making the invocation below |
---|
15 | # a little easier to read. |
---|
16 | |
---|
17 | DD=${CCL_DEFAULT_DIRECTORY} |
---|
18 | |
---|
19 | # If you don't want to guess the name of the OpenMCL kernel on |
---|
20 | # every invocation (or if you want to use a kernel with a |
---|
21 | # non-default name), you might want to uncomment and change |
---|
22 | # the following line: |
---|
23 | #OPENMCL_KERNEL=some_name |
---|
24 | |
---|
25 | # Set the CCL_DEFAULT_DIRECTORY environment variable; |
---|
26 | # the lisp will use this to setup translations for the CCL: logical host. |
---|
27 | |
---|
28 | if [ -z "$OPENMCL_KERNEL" ]; then |
---|
29 | case `uname -s` in |
---|
30 | Darwin) case `arch` in |
---|
31 | ppc*) OPENMCL_KERNEL=dppccl ;; |
---|
32 | i386) OPENMCL_KERNEL=dx86cl ;; |
---|
33 | esac ;; |
---|
34 | Linux) case `uname -m` in |
---|
35 | ppc*) OPENMCL_KERNEL=ppccl ;; |
---|
36 | *86*) OPENMCL_KERNEL=lx86cl ;; |
---|
37 | esac ;; |
---|
38 | CYGWIN*) |
---|
39 | OPENMCL_KERNEL=wx86cl.exe |
---|
40 | CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY" |
---|
41 | ;; |
---|
42 | *) |
---|
43 | echo "Can't determine host OS. Fix this." |
---|
44 | exit 1 |
---|
45 | ;; |
---|
46 | esac |
---|
47 | fi |
---|
48 | |
---|
49 | exec ${DD}/${OPENMCL_KERNEL} "$@" |
---|
50 | |
---|