source: trunk/source/scripts/ccl @ 13537

Last change on this file since 13537 was 13416, checked in by rme, 10 years ago

Don't bother with DD convenience variable, update some comments.
Fixes ticket:655

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2
3# Change the definition of CCL_DEFAULT_DIRECTORY below to refer to
4# your Clozure CL installation directory.  The lisp will use this
5# environment variable to set up translations for the CCL: logical
6# host.
7
8# Any definition of CCL_DEFAULT_DIRECTORY already present in the
9# environment takes precedence over definition made below.
10
11if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
12  CCL_DEFAULT_DIRECTORY=/usr/local/src/ccl
13fi
14
15# If you don't want to guess the name of the lisp kernel on
16# every invocation (or if you want to use a kernel with a
17# non-default name), you might want to uncomment and change
18# the following line:
19#OPENMCL_KERNEL=some_name
20
21if [ -z "$OPENMCL_KERNEL" ]; then
22  case `uname -s` in
23    Darwin) case `arch` in
24              ppc*) OPENMCL_KERNEL=dppccl ;;
25              i386) OPENMCL_KERNEL=dx86cl ;;
26            esac ;;
27    Linux) case `uname -m` in
28              ppc*) OPENMCL_KERNEL=ppccl ;;
29              *86*) OPENMCL_KERNEL=lx86cl ;;
30           esac ;;
31    CYGWIN*)
32       OPENMCL_KERNEL=wx86cl.exe
33       CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
34    ;;
35    SunOS) OPENMCL_KERNEL=sx86cl
36    ;;
37    FreeBSD) OPENMCL_KERNEL=fx86cl
38    ;;
39    *)
40    echo "Can't determine host OS.  Fix this."
41    exit 1
42    ;;
43  esac
44fi
45
46export CCL_DEFAULT_DIRECTORY
47exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL} "$@"
48
Note: See TracBrowser for help on using the repository browser.