#!/bin/sh
# @(#)$Date: 2003/03/21 02:59:59 $
#
# jmldoc2 -- developer's script for running the JML documentation generator
#
# SYNOPSIS: set CLASSPATH and run jmldoc

# If needed, change the following configuration parameters for your system
# by changing what is to the right of the equals sign (=) on the lines below
: ${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
: ${JMLDIR=`cygpath -wa "${HOME}/JML2"`}    # local home of JML
: ${PLSLDIR=`cygpath -wa "${HOME}/PLSL"`}   # local home of PLSL
# 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="${USRLOCAL}${JFILESEP}jkd1.4${JFILESEP}lib${JFILESEP}tools.jar"}

CLASSPATH=".${JPATHSEP}${ANTLRDIR}${JFILESEP}antlr.jar${JPATHSEP}${MJCDIR}${JPATHSEP}${JMLDIR}${JPATHSEP}${GNUDIR}${JPATHSEP}${JMLDIR}${JFILESEP}specs${JPATHSEP}${JPATHSEP}${PLSLDIR}${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 -Xms64m -Xmx128m org.jmlspecs.jmldoc.Main "$@"

# Copyright (C) 2002-2003 Iowa State University
#
# This file is part of JML
#
# JML 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, or (at your option)
# any later version.
#
# JML 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 JML; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
