#!/bin/sh
# last update $Date 2003/04/10 $
#
# mjc -- script for invoking the MultiJava Documentation Tool GUI
#
# SYNOPSIS: set CLASSPATH and run Mjdoc

# If needed, change the following configuration parameters for your system
# by changing what is to the right of the equals sign (=) on the next 5 defs
: ${JPATHSEP=';'}                           # change to ':' for Unix
: ${JFILESEP="\\"}                          # change to "/" for Unix
: ${USRLOCAL=`cygpath -wa /usr/local`}      # local software directory
: ${ANTLRDIR="${USRLOCAL}${JFILESEP}antlr"} # local home of Antlr
: ${GNUDIR="${USRLOCAL}${JFILESEP}gnu"}     # local dir above gnu/getops
: ${MJCDIR=`cygpath -wa "${HOME}/MJ"`}      # local home of MJC
# The following is needed because jmldoc only works with the JDK 1.4 tools.jar;
# edit the path so that it points to tools.jar in your JDK 1.4 install.
: ${JDKTOOLS=`cygpath -wa "/usr/local/jdk1.4/lib/tools.jar"`}

CLASSPATH=".${JPATHSEP}${ANTLRDIR}${JFILESEP}antlr.jar${JPATHSEP}${MJCDIR}${JPATHSEP}${GNUDIR}${JPATHSEP}${JDKTOOLS}${JPATHSEP}${CLASSPATH}"
export CLASSPATH

# You can use `java' or `jre -classpath "$CLASSPATH"' below
# but these have to be in your PATH
exec java org.multijava.mjdoc.MjdocGUI "$@"

## Copyright (C) 2000-2002 Iowa State University
##
## This file is part of mjc, the MultiJava Compiler.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
