File: javac-sablevm.tmpl

package info (click to toggle)
sablevm 1.13-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,084 kB
  • ctags: 9,231
  • sloc: ansic: 127,926; sh: 8,886; asm: 5,548; makefile: 693
file content (30 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# * This source file is part of SableVM.                            *
# *                                                                 *
# * See the file "LICENSE" for the copyright information and for    *
# * the terms and conditions for copying, distribution and          *
# * modification of this source file.                               *
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

JIKES=JIKES_BINARY

if [ ! -x "$JIKES" -o ! -f "$JIKES" ]; then
  JIKES=`which jikes`
fi

if [ "X$JIKES" = "X" ]; then
  echo "Error; unable to find 'jikes' compiler.  Make sure it is installed" >&2
  echo "and reachable via command 'JIKES_BINARY'." >&2
  echo "You might also want to check your PATH settings." >&2
  exit 1
fi

# this is so that jikes worked w/o problems, i.e. when called by Ant
BOOTCLASSPATH="SABLEVM_CLASSDIR:SABLEVM_CLASSDIR/libclasspath.jar:SABLEVM_CLASSDIR/resources.jar"
export BOOTCLASSPATH

exec $JIKES -q "$@"

echo "Error: unable to execute $JIKES." >&2
exit 1