source: trunk/source/scripts/ccl @ 10838

Last change on this file since 10838 was 10838, checked in by gb, 13 years ago

Handle 32-bit x86 linux.

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