#!/bin/sh
# $Id: gcj,v 1.3 2003/11/10 06:16:25 cher Exp $
# Copyright (c) 2002-2003 Alexander Chernov

# If GNU Compiler Collection is installed at non-standard place
# GCCDIR=/usr/upd/gcc-3.3.2

GCCRUN=gcj
if [ "${GCCDIR}" != "" ]
then
    PATH=${GCCDIR}/bin:${PATH}
    GCCRUN=${GCCDIR}/bin/${GCCRUN}
fi

mv $1 Main.java
exec ${GCCRUN} --main=Main -static -s -O2 Main.java -o $2
