source: trunk/source/scripts/ccl64 @ 13098

Last change on this file since 13098 was 13098, checked in by gb, 10 years ago

Move contributed ccl/ccl64 shell scripts to contrib/rittweiler. Revert
to pre-contributed (simpler, less flexible) versions in scripts, both
to avoid issues with platforms (Solaris 10) where /bin/sh doesn't refer
to a POSIX shell and to avoid the need for documentation changes.

  • Property svn:executable set to *
File size: 1.8 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)
29    case `arch` in
30      ppc*)
31      OPENMCL_KERNEL=dppccl64
32      ;;
33      i386|x86_64)
34      OPENMCL_KERNEL=dx86cl64
35      ;;
36    esac
37    ;;
38    Linux)
39    case `uname -m` in
40      ppc64)
41      OPENMCL_KERNEL=ppccl64
42      ;;
43      x86_64)
44      OPENMCL_KERNEL=lx86cl64
45      ;;
46      *)
47      echo "Can't determine machine architecture.  Fix this."
48      exit 1
49      ;;
50    esac
51    ;;
52    FreeBSD)
53    case `uname -m` in
54      amd64)
55      OPENMCL_KERNEL=fx86cl64
56      ;;
57      *)
58      echo "unsupported architecture"
59      exit 1
60      ;;
61    esac
62    ;;
63    SunOS)
64    case `uname -m` in
65      i86pc)
66      OPENMCL_KERNEL=sx86cl64
67      ;;
68      *)
69      echo "unsupported architecture"
70      exit 1
71      ;;
72    esac
73    ;;
74    CYGWIN*)
75    OPENMCL_KERNEL=wx86cl64.exe
76    CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
77    ;;
78    *)
79    echo "Can't determine host OS.  Fix this."
80    exit 1
81    ;;
82  esac
83fi
84
85CCL_DEFAULT_DIRECTORY=${DD} exec ${DD}/${OPENMCL_KERNEL} "$@"
86
Note: See TracBrowser for help on using the repository browser.