#!/bin/ksh -p
#
# Copyright 1999,2000 by the Purdue Research Foundation for CERIAS (the
# Center for Education and Research in Information Assurance and
# Security).  All rights reserved.  This work may be used for
# non-profit educational and research purposes only.  Any copies made
# of this file or portions of its contents must include this copyright
# statement.  For information on reuse, licensing, or copying, contact
# <cerias-info@cerias.purdue.edu>.
#
# This software is experimental in nature and is provided without any
# express or implied warranties, including, without limitation, the
# implied warranties of merchantability and fitness for any particular
# purpose.
#
JAVA_BIN=$1
ANTLR_HOME=$2
TARGET=$3

shift 3

if test -f "$TARGET"
then VERB=u
else VERB=c
fi

ln -s verbose_trace/antlr antlr

echo "Manifest-Version: 1.0
Main-Class: edu.purdue.cerias.projects.BSMParser.BSMParser
Class-Path: $ANTLR_HOME/antlr.jar"  |

$JAVA_BIN/jar ${VERB}mf /dev/stdin "$TARGET" \
edu/purdue/cerias/projects/BSMParser/BSMParser.class \
edu/purdue/cerias/projects/BSMParser/BSMTokenStream.class \
edu/purdue/cerias/projects/BSMParser/BSMToken.class \
edu/purdue/cerias/projects/BSMParser/BSMToken\$1.class \
edu/purdue/cerias/projects/BSMParser/BSMToken\$Header.class \
edu/purdue/cerias/projects/BSMParser/BSMToken\$Long.class \
edu/purdue/cerias/projects/BSMParser/BSMToken\$Double.class \
edu/purdue/cerias/projects/BSMParser/BSMToken\$Block.class \
edu/purdue/cerias/projects/BSMParser/BSMToken\$Proto.class \
edu/purdue/cerias/projects/BSMParser/BSMParserTokenTypes.class \
edu/purdue/cerias/projects/BSMParser/BSMScannerException.class \
antlr/LLkParser.class

rm antlr
