blob: a83cb73dbd523ca41e5df1eb3d51844cee59cb54 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#! /bin/sh
#
# ojc
#
# This translates and compile the files into byte codes.
# This is a shell script for linux or some unix-like systems,
# which do not have ksh.
#
# Sep 21, 2000 by Michiaki Tatsubori
# Please set up followings to be suitable for your enviroment.
JVM=java
if [ "$OPENJAVA_HOME" = "" ] ; then
PRG=$0
progname=`basename $0`
while [ -L "$PRG" ]; do
ls=`/bin/ls -ld "$PRG"`
link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
if /usr/bin/expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`/usr/bin/dirname $PRG`/$link"
fi
done
OPENJAVA_HOME=`dirname ${PRG}`/..
fi
CLASSPATH=${OPENJAVA_HOME}/classes:${CLASSPATH}
export CLASSPATH
# Pick out options for JVM
# i.e. -J"-classpath /home/classes"
JVMOPTS=-classpath ${CLASSPATH}
OJARGS=
for arg in $*; do
if [ ${arg} != ${arg#-J} ]; then
JVMOPTS="${JVMOPTS} ${arg#-J}"
else
OJARGS="${OJARGS} ${arg}"
fi
done
# Execute
echo ${JVM} ${JVMOPTS} openjava.ojc.Main ${OJARGS}
${JVM} ${JVMOPTS} openjava.ojc.Main ${OJARGS}
|