source: trunk/source/scripts/ccl @ 14119

Last change on this file since 14119 was 14119, checked in by gb, 11 years ago

Changes from ARM branch. Need testing ...

  • Property svn:executable set to *
File size: 1.4 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              *arm*) OPENMCL_KERNEL=armcl ;;
31           esac ;;
32    CYGWIN*)
33       OPENMCL_KERNEL=wx86cl.exe
34       CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
35    ;;
36    SunOS) OPENMCL_KERNEL=sx86cl
37    ;;
38    FreeBSD) OPENMCL_KERNEL=fx86cl
39    ;;
40    *)
41    echo "Can't determine host OS.  Fix this."
42    exit 1
43    ;;
44  esac
45fi
46
47export CCL_DEFAULT_DIRECTORY
48exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL} "$@"
49
Note: See TracBrowser for help on using the repository browser.